diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mknod.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mknod.c b/src/mknod.c index 0491a7f3c..a67a74283 100644 --- a/src/mknod.c +++ b/src/mknod.c @@ -186,8 +186,10 @@ numbers must be specified")); error (1, 0, _("invalid minor device number %s"), quote (s_minor)); device = makedev (i_major, i_minor); +#ifdef NODEV if (device == NODEV) error (1, 0, _("invalid device %s %s"), s_major, s_minor); +#endif if (mknod (argv[optind], newmode | node_type, device) != 0) error (1, errno, "%s", quote (argv[optind])); |