{"thread":{"id":"31469","subject":"RE: [PATCH v3 3/4] fix some win32 specific dependencies in poll.c","startedAt":"2012-09-07T12:55:45Z","lastAt":"2012-09-07T12:55:45Z","messageCount":1,"participants":["Joachim Schmitz"],"isPatch":true,"patchVersion":3,"patchTotal":4},"messages":[{"id":"198519","messageId":"003c01cd8cf8$1968a980$4c39fc80$@schmitz-digital.de","threadId":"31469","inReplyTo":null,"subject":"RE: [PATCH v3 3/4] fix some win32 specific dependencies in poll.c","fromName":"Joachim Schmitz","fromEmail":"jojo@schmitz-digital.de","sentAt":"2012-09-07T12:55:45Z","receivedAt":"2012-09-07T12:55:45Z","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\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"}]}