aboutsummaryrefslogtreecommitdiffstats
path: root/extension/fnmatch.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-08-30 21:17:21 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-08-30 21:17:21 +0300
commit7bc973537c24b1a694147822385bf2f2e0908b27 (patch)
treefcfa0b7f20a39cc55863e2b8d0b8034919b94895 /extension/fnmatch.c
parent396c2c1644b2f08b1a7725119f3615cc12bc33e7 (diff)
downloadegawk-7bc973537c24b1a694147822385bf2f2e0908b27.tar.gz
egawk-7bc973537c24b1a694147822385bf2f2e0908b27.tar.bz2
egawk-7bc973537c24b1a694147822385bf2f2e0908b27.zip
Add use of <sys/sysmacros.h> to extension/fnmatch.c.
Diffstat (limited to 'extension/fnmatch.c')
-rw-r--r--extension/fnmatch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/extension/fnmatch.c b/extension/fnmatch.c
index 5382e4bc..9b7640de 100644
--- a/extension/fnmatch.c
+++ b/extension/fnmatch.c
@@ -39,6 +39,12 @@
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef MAJOR_IN_MKDEV
+#include <sys/mkdev.h>
+#elif defined(MAJOR_IN_SYSMACROS)
+#include <sys/sysmacros.h>
+#endif
+
#include "gawkapi.h"
#include "gettext.h"