Skip to content

Commit 1e9db80

Browse files
committed
Tweak some macro definition on Windows
Closes GH-5606
1 parent c2a2d24 commit 1e9db80

File tree

6 files changed

+5
-43
lines changed

6 files changed

+5
-43
lines changed

ext/standard/filestat.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,7 @@
5959
#endif
6060

6161
#if HAVE_GRP_H
62-
# ifdef PHP_WIN32
63-
# include "win32/grp.h"
64-
# else
65-
# include <grp.h>
66-
# endif
62+
# include <grp.h>
6763
#endif
6864

6965
#if HAVE_UTIME

ext/standard/link.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,7 @@
4040
#endif
4141
#endif
4242
#if HAVE_GRP_H
43-
#ifdef PHP_WIN32
44-
#include "win32/grp.h"
45-
#else
46-
#include <grp.h>
47-
#endif
43+
# include <grp.h>
4844
#endif
4945
#include <errno.h>
5046
#include <ctype.h>

ext/standard/pageinfo.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,7 @@
2828
#endif
2929
#endif
3030
#if HAVE_GRP_H
31-
# ifdef PHP_WIN32
32-
# include "win32/grp.h"
33-
# else
34-
# include <grp.h>
35-
# endif
31+
# include <grp.h>
3632
#endif
3733
#ifdef PHP_WIN32
3834
#undef getgid

win32/build/config.w32

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,6 @@ if (main_network_has_ipv6) {
293293
AC_DEFINE('HAVE_GAI_STRERROR', 1);
294294
AC_DEFINE('HAVE_IPV6', 1);
295295
}
296-
AC_DEFINE('HAVE_GETADDRINFO', main_network_has_ipv6);
297296

298297
/* this allows up to 256 sockets to be select()ed in a single
299298
* call to select(), instead of the usual 64 */

win32/build/config.w32.h.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,5 @@
135135
#ifdef __clang__
136136
#define HAVE_FUNC_ATTRIBUTE_TARGET 1
137137
#endif
138+
139+
#define HAVE_GETADDRINFO 1

win32/grp.h

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)