projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Have just one debug test, and don't use timers during gdb operations.
[m6w6/libmemcached]
/
libmemcached-1.0
/
platform.h
diff --git
a/libmemcached-1.0/platform.h
b/libmemcached-1.0/platform.h
index 19248283f5d14d1ca0bae4010f67d64c4f31b50b..01ce276c876634daaf7ae015de5c7404c5e48eaf 100644
(file)
--- a/
libmemcached-1.0/platform.h
+++ b/
libmemcached-1.0/platform.h
@@
-2,8
+2,8
@@
*
* Libmemcached library
*
*
* Libmemcached library
*
- * Copyright (C) 2011 Data Differential, http://datadifferential.com/
- *
Copyright (C) 2006-2009 Brian Aker, Trond Norbye
All rights reserved.
+ * Copyright (C) 2011 Data Differential, http://datadifferential.com/
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@
-38,19
+38,21
@@
#pragma once
#pragma once
-#ifdef WIN32
+#if defined(WIN32) || defined(__MINGW32__)
+# include <winsock2.h>
+# include <ws2tcpip.h>
-#include <winsock2.h>
-#include <ws2tcpip.h>
typedef short in_port_t;
typedef SOCKET memcached_socket_t;
typedef short in_port_t;
typedef SOCKET memcached_socket_t;
+
#else
#else
+# include <sys/socket.h>
+# include <netinet/in.h>
+# include <arpa/inet.h>
+# include <netdb.h>
+# include <sys/un.h>
+# include <netinet/tcp.h>
+
typedef int memcached_socket_t;
typedef int memcached_socket_t;
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <sys/un.h>
-#include <netinet/tcp.h>
#endif /* WIN32 */
#endif /* WIN32 */