1
0
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:
Peter Kokot
2018-06-13 04:36:55 +02:00
parent ea592e6b6c
commit 97f2ce4031
2 changed files with 4 additions and 1 deletions

View File

@@ -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)

View File

@@ -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);