Skip to content

Commit 189fbfd

Browse files
committed
Fix ext/sockets build with phpize
Fixes bug #64285
1 parent 97f2270 commit 189fbfd

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

ext/sockets/multicast.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424

2525
#include "php.h"
2626

27-
#if HAVE_SOCKETS
28-
2927
#include "php_network.h"
3028
#ifdef PHP_WIN32
3129
# include "windows_common.h"
@@ -836,5 +834,3 @@ int php_add4_to_if_index(struct in_addr *addr, php_socket *php_sock, unsigned *i
836834
return FAILURE;
837835
}
838836
#endif
839-
840-
#endif /* HAVE_SOCKETS */

ext/sockets/php_sockets.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424

2525
/* $Id$ */
2626

27+
#if HAVE_CONFIG_H
28+
# include "config.h"
29+
#endif
30+
2731
#if HAVE_SOCKETS
2832

2933
#include <php.h>

ext/sockets/sockets.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,6 @@
2828

2929
#include "php.h"
3030

31-
#if HAVE_SOCKETS
32-
3331
#include "php_network.h"
3432
#include "ext/standard/file.h"
3533
#include "ext/standard/info.h"
@@ -2278,8 +2276,6 @@ PHP_FUNCTION(socket_import_stream)
22782276
}
22792277
/* }}} */
22802278

2281-
#endif
2282-
22832279
/*
22842280
* Local variables:
22852281
* tab-width: 4

0 commit comments

Comments
 (0)