diff --git a/ext/posix/config.m4 b/ext/posix/config.m4 index aa24907bc8d..9bd6fdb5c5b 100644 --- a/ext/posix/config.m4 +++ b/ext/posix/config.m4 @@ -9,5 +9,7 @@ if test "$PHP_POSIX" = "yes"; then AC_DEFINE(HAVE_POSIX, 1, [whether to include POSIX-like functions]) PHP_NEW_EXTENSION(posix, posix.c, $ext_shared) + AC_CHECK_HEADERS(sys/mkdev.h) + AC_CHECK_FUNCS(seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod getrlimit getlogin getgroups) fi diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 7bee3d22e22..9558f0bb49c 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -44,6 +44,9 @@ #include #include #include +#if HAVE_SYS_MKDEV_H +# include +#endif ZEND_DECLARE_MODULE_GLOBALS(posix)