Browse Source

Fixed bug #74906 redirecting incorrect include <sys/errno.h>

pull/2636/head
Peter Kokot 9 years ago
committed by Joe Watkins
parent
commit
9780d16376
No known key found for this signature in database GPG Key ID: F9BA0ADA31CBD89E
  1. 1
      NEWS
  2. 7
      ext/snmp/snmp.c

1
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

7
ext/snmp/snmp.c

@ -38,20 +38,15 @@
#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

Loading…
Cancel
Save