summaryrefslogtreecommitdiff
path: root/ext/posix/posix.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/posix/posix.c')
-rw-r--r--ext/posix/posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/posix/posix.c b/ext/posix/posix.c
index ce06ce9bfd..26b76cc4bf 100644
--- a/ext/posix/posix.c
+++ b/ext/posix/posix.c
@@ -698,7 +698,7 @@ PHP_FUNCTION(posix_mknod)
"expects argument 4 to be non-zero for POSIX_S_IFCHR and POSIX_S_IFBLK");
RETURN_FALSE;
} else {
-#ifdef HAVE_MAKEDEV
+#if defined(HAVE_MAKEDEV) || defined(makedev)
php_dev = makedev(major, minor);
#else
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can not create a block or character device, creating a normal file instead");