]> granicus.if.org Git - php/commitdiff
Fixed bug #74906 redirecting incorrect include <sys/errno.h>
authorPeter Kokot <peterkokot@gmail.com>
Wed, 12 Jul 2017 19:42:06 +0000 (21:42 +0200)
committerJoe Watkins <krakjoe@php.net>
Mon, 17 Jul 2017 05:56:59 +0000 (06:56 +0100)
NEWS
ext/snmp/snmp.c

diff --git a/NEWS b/NEWS
index 3c55f0ae0e06b8e169846ac446dc9652140f78ac..4b3d6f92d37bf54196fadf76906c639e944c61f3 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -15,6 +15,7 @@ PHP                                                                        NEWS
     (Francois Laupretre)
   . Fixed bug #74923 (Crash when crawling through network share). (Anatol)
   . 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 e911bf305fb6f3d959c22646ee2a3a3300dc1d0a..d9a49fb01b40c434089c9aef99a2e7b7bd0452d6 100644 (file)
 #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"
 #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