summaryrefslogtreecommitdiffstats
path: root/daemon/mknod.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon/mknod.c')
-rw-r--r--daemon/mknod.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/daemon/mknod.c b/daemon/mknod.c
index adaeb80e..6ff88efa 100644
--- a/daemon/mknod.c
+++ b/daemon/mknod.c
@@ -33,6 +33,7 @@
int
do_mknod (int mode, int devmajor, int devminor, const char *path)
{
+#ifdef HAVE_MKNOD
int r;
CHROOT_IN;
@@ -45,6 +46,10 @@ do_mknod (int mode, int devmajor, int devminor, const char *path)
}
return 0;
+#else
+ reply_with_error ("%s is not available", __func__);
+ return -1;
+#endif
}
int