diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-08-30 21:17:21 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-08-30 21:17:21 +0300 |
commit | 7bc973537c24b1a694147822385bf2f2e0908b27 (patch) | |
tree | fcfa0b7f20a39cc55863e2b8d0b8034919b94895 /extension | |
parent | 396c2c1644b2f08b1a7725119f3615cc12bc33e7 (diff) | |
download | egawk-7bc973537c24b1a694147822385bf2f2e0908b27.tar.gz egawk-7bc973537c24b1a694147822385bf2f2e0908b27.tar.bz2 egawk-7bc973537c24b1a694147822385bf2f2e0908b27.zip |
Add use of <sys/sysmacros.h> to extension/fnmatch.c.
Diffstat (limited to 'extension')
-rw-r--r-- | extension/ChangeLog | 6 | ||||
-rw-r--r-- | extension/fnmatch.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/extension/ChangeLog b/extension/ChangeLog index 546006ff..613479e1 100644 --- a/extension/ChangeLog +++ b/extension/ChangeLog @@ -1,3 +1,9 @@ +2017-08-30 Arnold D. Robbins <arnold@skeeve.com> + + * fnmatch.c: Use the right autoconf goop to get the major + and minor macros out of <sys/sysmacros.h>. Thanks to + David Kaspar <dkaspar@redhat.com> for the report. + 2017-08-21 Arnold D. Robbins <arnold@skeeve.com> * Makefile.am (ntdiv_la_LIBADD): Add -lm for Solaris systems, 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" |