From: Wez Furlong Date: Mon, 6 Jun 2005 22:06:00 +0000 (+0000) Subject: mfh: fix solaris build X-Git-Tag: php-5.0.5RC1~199 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6deefd14449f3a6e4f300114022ec471bccef7ab;p=php mfh: fix solaris build --- diff --git a/ext/posix/config.m4 b/ext/posix/config.m4 index e687f73bf7..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_FUNCS(seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo getrlimit getlogin getgroups) + 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 3d6512d468..a116afa337 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)