changeset 143:5e381e0380f4

GNU file utilities
author Jim Meyering <jim@meyering.net>
date Fri, 17 Dec 1993 23:06:39 +0000
parents 5721c3bca320
children 8124cd69ac96
files lib/fnmatch.h
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/fnmatch.h
+++ b/lib/fnmatch.h
@@ -34,6 +34,13 @@
    non-ANSI C where `const' is problematical.  */
 #endif /* C++ or ANSI C.  */
 
+
+/* We #undef these before defining them because some losing systems
+   (HP-UX A.08.07 for example) define these in <unistd.h>.  */
+#undef	FNM_PATHNAME
+#undef	FNM_NOESCAPE
+#undef	FNM_PERIOD
+
 /* Bits set in the FLAGS argument to `fnmatch'.  */
 #define	FNM_PATHNAME	(1 << 0) /* No wildcard can ever match `/'.  */
 #define	FNM_NOESCAPE	(1 << 1) /* Backslashes don't quote special chars.  */