mirror of
https://github.com/php/php-src.git
synced 2026-04-11 18:13:00 +02:00
Fix bug #75481: makedev warning
To use makedev the sys/sysmacros.h needs to be included on newer systems.
This commit is contained in:
@@ -9,7 +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_HEADERS([sys/mkdev.h sys/sysmacros.h])
|
||||
|
||||
AC_CHECK_FUNCS(seteuid setegid setsid getsid setpgid getpgid ctermid mkfifo mknod setrlimit getrlimit getlogin getgroups makedev initgroups getpwuid_r getgrgid_r)
|
||||
|
||||
|
||||
@@ -52,6 +52,9 @@
|
||||
#if HAVE_SYS_MKDEV_H
|
||||
# include <sys/mkdev.h>
|
||||
#endif
|
||||
#if HAVE_SYS_SYSMACROS_H
|
||||
# include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
ZEND_DECLARE_MODULE_GLOBALS(posix)
|
||||
static PHP_MINFO_FUNCTION(posix);
|
||||
|
||||
Reference in New Issue
Block a user