{"thread":{"id":"31573","subject":"[PATCH v7 2/4] fix some win32 specific dependencies in poll.c","startedAt":"2012-09-17T21:18:27Z","lastAt":"2012-09-17T21:18:27Z","messageCount":1,"participants":["Joachim Schmitz"],"isPatch":true,"patchVersion":7,"patchTotal":4},"messages":[{"id":"199292","messageId":"004c01cd9519$fb402b20$f1c08160$@schmitz-digital.de","threadId":"31573","inReplyTo":null,"subject":"[PATCH v7 2/4] fix some win32 specific dependencies in poll.c","fromName":"Joachim Schmitz","fromEmail":"jojo@schmitz-digital.de","sentAt":"2012-09-17T21:18:27Z","receivedAt":"2012-09-17T21:18:27Z","isPatch":true,"sender":{"key":"jojo@schmitz-digital.de","avatar":"https://avatars.githubusercontent.com/u/1786669?v=4"},"body":"In order for non-win32 platforms to be able to use poll.c, #ifdef the\ninclusion of two header files properly\n\nSigned-off-by: Joachim Schmitz <jojo@schmitz-digital.de>\n---\n compat/poll/poll.c | 8 ++++++--\n 1 file changed, 6 insertions(+), 2 deletions(-)\n\ndiff --git a/compat/poll/poll.c b/compat/poll/poll.c\nindex 9e7a25c..e4b8319 100644\n--- a/compat/poll/poll.c\n+++ b/compat/poll/poll.c\n@@ -24,7 +24,9 @@\n # pragma GCC diagnostic ignored \"-Wtype-limits\"\n #endif\n \n-#include <malloc.h>\n+#if defined(WIN32)\n+# include <malloc.h>\n+#endif\n \n #include <sys/types.h>\n \n@@ -48,7 +50,9 @@\n #else\n # include <sys/time.h>\n # include <sys/socket.h>\n-# include <sys/select.h>\n+# ifndef NO_SYS_SELECT_H\n+#  include <sys/select.h>\n+# endif\n # include <unistd.h>\n #endif\n \n-- \n1.7.12\n"}]}