diff options
author | Peter Kokot <peterkokot@gmail.com> | 2018-06-13 04:36:55 +0200 |
---|---|---|
committer | Peter Kokot <peterkokot@gmail.com> | 2018-06-13 04:36:55 +0200 |
commit | 97f2ce403165285cdbd671069bd0f85910f88be9 (patch) | |
tree | e07659ba09189a2d866e325c275c34aa0ef0041b /ext/posix/posix.c | |
parent | ea592e6b6c43b7c5ebedf63254b8088f741e276c (diff) | |
download | php-git-97f2ce403165285cdbd671069bd0f85910f88be9.tar.gz |
Fix bug #75481: makedev warning
To use makedev the sys/sysmacros.h needs to be included on newer
systems.
Diffstat (limited to 'ext/posix/posix.c')
-rw-r--r-- | ext/posix/posix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c index 066139df29..b3b9de8736 100644 --- a/ext/posix/posix.c +++ b/ext/posix/posix.c @@ -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); |