aboutsummaryrefslogtreecommitdiffstats
path: root/extension/filefuncs.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-12-28 20:51:34 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-12-28 20:51:34 +0200
commit18906a48d06521c9bbd77ffe6c3dbf9498ca5b20 (patch)
treeaffbe2c45bc4d3f88d53fa14f7f5fde02f3ad463 /extension/filefuncs.c
parent348c16bbdf8c1599188d7f60e9e9ff58fa9e7484 (diff)
parent57801f2be5b7548e2dba148a54c0b0542a4240c7 (diff)
downloadegawk-18906a48d06521c9bbd77ffe6c3dbf9498ca5b20.tar.gz
egawk-18906a48d06521c9bbd77ffe6c3dbf9498ca5b20.tar.bz2
egawk-18906a48d06521c9bbd77ffe6c3dbf9498ca5b20.zip
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'extension/filefuncs.c')
-rw-r--r--extension/filefuncs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/extension/filefuncs.c b/extension/filefuncs.c
index 38542115..64016402 100644
--- a/extension/filefuncs.c
+++ b/extension/filefuncs.c
@@ -72,17 +72,17 @@
#include <string.h>
#include <unistd.h>
-#include <sys/types.h>
-
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif /* HAVE_SYS_PARAM_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 <sys/stat.h>