Skip to content

Commit

Permalink
makedev is a macro on several systems.
Browse files Browse the repository at this point in the history
  • Loading branch information
maatta committed Aug 8, 2005
1 parent 52e03bc commit 1b31cbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/posix/posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 1b31cbd

Please sign in to comment.