You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.7 KiB

  1. --- a/configure.in 2017-04-14 11:53:48.345481008 -0600
  2. +++ b/configure.in 2017-04-14 11:58:47.887644651 -0600
  3. @@ -497,6 +497,7 @@
  4. locale.h \
  5. monetary.h \
  6. netdb.h \
  7. +poll.h \
  8. pwd.h \
  9. resolv.h \
  10. signal.h \
  11. @@ -509,7 +510,6 @@
  12. sys/file.h \
  13. sys/mman.h \
  14. sys/mount.h \
  15. -sys/poll.h \
  16. sys/resource.h \
  17. sys/select.h \
  18. sys/socket.h \
  19. --- a/main/php_network.h 2017-04-11 09:37:35.000000000 -0600
  20. +++ b/main/php_network.h 2017-04-14 12:00:00.736168983 -0600
  21. @@ -122,8 +122,8 @@
  22. /* uncomment this to debug poll(2) emulation on systems that have poll(2) */
  23. /* #define PHP_USE_POLL_2_EMULATION 1 */
  24. -#if defined(HAVE_SYS_POLL_H) && defined(HAVE_POLL)
  25. -# include <sys/poll.h>
  26. +#if defined(HAVE_POLL_H) && defined(HAVE_POLL)
  27. +# include <poll.h>
  28. typedef struct pollfd php_pollfd;
  29. #else
  30. typedef struct _php_pollfd {
  31. --- a/main/network.c 2017-04-11 09:37:35.000000000 -0600
  32. +++ b/main/network.c 2017-04-14 11:59:44.528052372 -0600
  33. @@ -51,8 +51,8 @@
  34. #ifdef HAVE_SYS_SELECT_H
  35. #include <sys/select.h>
  36. #endif
  37. -#if HAVE_SYS_POLL_H
  38. -#include <sys/poll.h>
  39. +#if HAVE_POLL_H
  40. +#include <poll.h>
  41. #endif
  42. #if defined(NETWARE)
  43. --- a/main/fastcgi.c 2017-04-11 09:37:35.000000000 -0600
  44. +++ b/main/fastcgi.c 2017-04-14 12:01:06.924644901 -0600
  45. @@ -76,8 +76,8 @@
  46. # include <netdb.h>
  47. # include <signal.h>
  48. -# if defined(HAVE_SYS_POLL_H) && defined(HAVE_POLL)
  49. -# include <sys/poll.h>
  50. +# if defined(HAVE_POLL_H) && defined(HAVE_POLL)
  51. +# include <poll.h>
  52. # endif
  53. # if defined(HAVE_SYS_SELECT_H)
  54. # include <sys/select.h>
  55. @@ -1430,7 +1430,7 @@
  56. break;
  57. #else
  58. if (req->fd >= 0) {
  59. -#if defined(HAVE_SYS_POLL_H) && defined(HAVE_POLL)
  60. +#if defined(HAVE_POLL_H) && defined(HAVE_POLL)
  61. struct pollfd fds;
  62. int ret;