Fix configure check for SO_RCVTIMEO on macs: they need an extra header.
authorRobey Pointer <robey@twitter.com>
Thu, 22 Jan 2009 08:39:28 +0000 (09:39 +0100)
committerRobey Pointer <robey@twitter.com>
Thu, 22 Jan 2009 08:39:28 +0000 (09:39 +0100)
config/setsockopt.m4

index f1115d3a1307f6fb88f0efe19c0e842fe7b3b959..4ca7214cff9595dd1d6c1342f5b1e8809e3b2881 100644 (file)
@@ -7,6 +7,7 @@ AC_RUN_IFELSE([
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <time.h>
+#include <sys/time.h>
 #include <errno.h>
    ], [
      int sock = socket(AF_INET, SOCK_STREAM, 0);
@@ -30,6 +31,7 @@ AC_RUN_IFELSE([
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <time.h>
+#include <sys/time.h>
 #include <errno.h>
    ], [
      int sock = socket(AF_INET, SOCK_STREAM, 0);