aboutsummaryrefslogtreecommitdiffstats
path: root/extension/fnmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'extension/fnmatch.c')
-rw-r--r--extension/fnmatch.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/extension/fnmatch.c b/extension/fnmatch.c
index 9b7640de..5119bfda 100644
--- a/extension/fnmatch.c
+++ b/extension/fnmatch.c
@@ -36,14 +36,15 @@
#include <string.h>
#include <unistd.h>
-#include <sys/types.h>
#include <sys/stat.h>
-#ifdef MAJOR_IN_MKDEV
-#include <sys/mkdev.h>
-#elif defined(MAJOR_IN_SYSMACROS)
+#if HAVE_SYS_SYSMACROS_H
#include <sys/sysmacros.h>
-#endif
+#elif HAVE_SYS_MKDEV_H
+#include <sys/mkdev.h>
+#endif /* HAVE_SYS_MKDEV_H */
+
+#include <sys/types.h>
#include "gawkapi.h"