summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/system.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/system.h b/src/system.h
index 582fd7c51..95b97e38b 100644
--- a/src/system.h
+++ b/src/system.h
@@ -85,6 +85,10 @@
#endif
#undef HAVE_MAJOR
+#ifndef NODEV
+# define NODEV ((dev_t) -1)
+#endif
+
#if HAVE_UTIME_H
# include <utime.h>
#endif