Fix for OSX.
authorBrian Aker <brian@tangent.org>
Mon, 10 Dec 2012 08:48:34 +0000 (03:48 -0500)
committerBrian Aker <brian@tangent.org>
Mon, 10 Dec 2012 08:48:34 +0000 (03:48 -0500)
libtest/client.cc

index 6caac9b1b505d6fe0c94e34bcdf744354615426f..c4d2df37906e9713f634050d716b5f1d58666111 100644 (file)
 #include <sys/socket.h>
 #include <unistd.h>
 #include <string>
-#include <poll.h>
 
+#ifdef HAVE_POLL_H
+# include <poll.h>
+#endif
+
+#ifndef HAVE_MSG_NOSIGNAL
+# define MSG_NOSIGNAL 0
+#endif
 
 namespace libtest {