File tree 2 files changed +7
-28
lines changed
2 files changed +7
-28
lines changed Original file line number Diff line number Diff line change @@ -327,27 +327,6 @@ AC_DEFUN([AC_FPM_KQUEUE],
327
327
] )
328
328
] )
329
329
330
- AC_DEFUN ( [ AC_FPM_PORT] ,
331
- [
332
- AC_MSG_CHECKING ( [ for port framework] )
333
-
334
- AC_COMPILE_IFELSE ( [ AC_LANG_PROGRAM ( [ [
335
- #include <port.h>
336
- ] ] , [ [
337
- int port;
338
-
339
- port = port_create();
340
- if (port < 0) {
341
- return 1;
342
- }
343
- ] ] ) ] , [
344
- AC_DEFINE ( [ HAVE_PORT] , 1 , [ do we have port framework?] )
345
- AC_MSG_RESULT ( [ yes] )
346
- ] , [
347
- AC_MSG_RESULT ( [ no] )
348
- ] )
349
- ] )
350
-
351
330
AC_DEFUN ( [ AC_FPM_DEVPOLL] ,
352
331
[
353
332
AC_MSG_CHECKING ( [ for /dev/poll] )
@@ -443,7 +422,6 @@ if test "$PHP_FPM" != "no"; then
443
422
AC_FPM_BUILTIN_ATOMIC
444
423
AC_FPM_LQ
445
424
AC_FPM_KQUEUE
446
- AC_FPM_PORT
447
425
AC_FPM_DEVPOLL
448
426
AC_FPM_EPOLL
449
427
AC_FPM_SELECT
@@ -452,6 +430,7 @@ if test "$PHP_FPM" != "no"; then
452
430
453
431
AC_CHECK_HEADER ( [ priv.h] , [ AC_CHECK_FUNCS ( [ setpflags] ) ] )
454
432
AC_CHECK_HEADER ( [ sys/times.h] , [ AC_CHECK_FUNCS ( [ times] ) ] )
433
+ AC_CHECK_HEADER ( [ port.h] , [ AC_CHECK_FUNCS ( [ port_create] ) ] )
455
434
456
435
PHP_ARG_WITH([ fpm-user] ,,
457
436
[ AS_HELP_STRING ( [ [ --with-fpm-user[ =USER] ] ] ,
Original file line number Diff line number Diff line change 19
19
#include "../fpm.h"
20
20
#include "../zlog.h"
21
21
22
- #ifdef HAVE_PORT
22
+ #ifdef HAVE_PORT_CREATE
23
23
24
24
#include <port.h>
25
25
#include <poll.h>
@@ -45,19 +45,19 @@ port_event_t *events = NULL;
45
45
int nevents = 0 ;
46
46
static int pfd = -1 ;
47
47
48
- #endif /* HAVE_PORT */
48
+ #endif /* HAVE_PORT_CREATE */
49
49
50
50
struct fpm_event_module_s * fpm_event_port_module (void ) /* {{{ */
51
51
{
52
- #ifdef HAVE_PORT
52
+ #ifdef HAVE_PORT_CREATE
53
53
return & port_module ;
54
54
#else
55
55
return NULL ;
56
- #endif /* HAVE_PORT */
56
+ #endif /* HAVE_PORT_CREATE */
57
57
}
58
58
/* }}} */
59
59
60
- #ifdef HAVE_PORT
60
+ #ifdef HAVE_PORT_CREATE
61
61
62
62
/*
63
63
* Init the module
@@ -196,4 +196,4 @@ static int fpm_event_port_remove(struct fpm_event_s *ev) /* {{{ */
196
196
}
197
197
/* }}} */
198
198
199
- #endif /* HAVE_PORT */
199
+ #endif /* HAVE_PORT_CREATE */
You can’t perform that action at this time.
0 commit comments