Permalink
Browse files

Fix server.c for BSDs, actually.

  • Loading branch information...
andrebraga committed Jul 20, 2012
1 parent 6051d8b commit bd8a0606f45c0b55e2c121c9c74e688e463b6434
Showing with 1 addition and 1 deletion.
  1. +1 −1 server.c
View
@@ -26,7 +26,7 @@ socket_setup(const char *ip, short port) {
int fd, ret;
memset(&addr, 0, sizeof(addr));
-#if defined __APPLE__ && defined __MACH__
+#if defined __BSD__
addr.sin_len = sizeof(struct sockaddr_in);
#endif
addr.sin_family = AF_INET;

0 comments on commit bd8a060

Please sign in to comment.