projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
Update for mingw compile.
[awesomized/libmemcached]
/
libmemcached-1.0
/
platform.h
diff --git
a/libmemcached-1.0/platform.h
b/libmemcached-1.0/platform.h
index 01ce276c876634daaf7ae015de5c7404c5e48eaf..9cbc705fcd30ac9e9f77d55f70e264854c9e94b6 100644
(file)
--- a/
libmemcached-1.0/platform.h
+++ b/
libmemcached-1.0/platform.h
@@
-42,7
+42,11
@@
# include <winsock2.h>
# include <ws2tcpip.h>
-typedef short in_port_t;
+#ifndef HAVE_IN_PORT_T
+typedef int in_port_t;
+# define HAVE_IN_PORT_T 1
+#endif
+
typedef SOCKET memcached_socket_t;
#else