From: Wez Furlong Date: Mon, 6 Jun 2005 22:04:14 +0000 (+0000) Subject: fix build on Solaris X-Git-Tag: php-5.0.1b1~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9de2a3dbd72d4ad79395ddadd7ea55b96d9d9aa;p=php fix build on Solaris --- diff --git a/ext/posix/config.m4 b/ext/posix/config.m4 index aa24907bc8..9bd6fdb5c5 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 7bee3d22e2..9558f0bb49 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)