summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/util/compat.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/util/compat.h b/include/util/compat.h
index cb9e81c..76ede23 100644
--- a/include/util/compat.h
+++ b/include/util/compat.h
@@ -105,6 +105,10 @@ struct stat {
#else
#include <sys/types.h>
#include <sys/stat.h>
+
+#ifdef __linux__
+#include <sys/sysmacros.h>
+#endif
#endif
#ifndef HAVE_GETLINE