projects
/
umurmur.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f437c88
)
Fixed OS detection
author
Felix Morgner
<felix.morgner@gmail.com>
Fri, 2 May 2014 07:23:02 +0000
(09:23 +0200)
committer
Felix Morgner
<felix.morgner@gmail.com>
Fri, 2 May 2014 07:23:02 +0000
(09:23 +0200)
src/server.c
patch
|
blob
|
history
diff --git
a/src/server.c
b/src/server.c
index 3afca49aeaee3c0c76e7556c60534597c0e3e8be..c58264331d488cd2e42bf561a7c406cfb4dfc80c 100644
(file)
--- a/
src/server.c
+++ b/
src/server.c
@@
-72,7
+72,7
@@
struct sockaddr_storage** Server_setupAddressesAndPorts()
struct sockaddr_storage* v6address = calloc(1, sizeof(struct sockaddr_storage));
v6address->ss_family = AF_INET6;
-#if defined(
NETBSD) || defined(FREEBSD) || defined(OPENBSD
) || defined(__APPLE__)
+#if defined(
__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__
) || defined(__APPLE__)
v4address->ss_len = sizeof(struct sockaddr_storage);
v6address->ss_len = sizeof(struct sockaddr_storage);
#endif