]> granicus.if.org Git - php/commitdiff
Fixed bug #74906 redirecting incorrect include <sys/errno.h>
authorPeter Kokot <peterkokot@gmail.com>
Tue, 11 Jul 2017 22:41:43 +0000 (00:41 +0200)
committerJoe Watkins <krakjoe@php.net>
Mon, 17 Jul 2017 05:54:27 +0000 (06:54 +0100)
NEWS
ext/snmp/snmp.c

diff --git a/NEWS b/NEWS
index 19dc26829b85a78c8e37b8a1c664cd5eeef517f0..b3c9d6fb9d2cc64ac25deabd672b2b5e340cb887 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ PHP                                                                        NEWS
   . Fixed bug #74761 (Unary operator expected error on some systems). (petk)
   . Fixed bug #73900 (Use After Free in unserialize() SplFixedArray). (nikic)
   . Fixed bug #74913 (fixed incorrect poll.h include). (petk)
+  . Fixed bug #74906 (fixed incorrect errno.h include). (petk)
 
 - Date:
   . Fixed bug #74852 (property_exists returns true on unknown DateInterval 
index 7e299999a6c6671ef61d6efe6cde2d2cc2a3e02c..1605f0c6eb65704b23b308268d41c46113c74a89 100644 (file)
@@ -41,9 +41,9 @@
 #if HAVE_SNMP
 
 #include <sys/types.h>
+#include <errno.h>
 #ifdef PHP_WIN32
 #include <winsock2.h>
-#include <errno.h>
 #include <process.h>
 #include "win32/time.h"
 #elif defined(NETWARE)
 #else
 #include <sys/socket.h>
 #endif
-#include <errno.h>
 #include <sys/timeval.h>
 #else
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
-#ifndef _OSD_POSIX
-#include <sys/errno.h>
-#else
-#include <errno.h>  /* BS2000/OSD uses <errno.h>, not <sys/errno.h> */
-#endif
 #include <netdb.h>
 #endif
 #ifdef HAVE_UNISTD_H