summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-12-17 23:06:39 +0000
committerJim Meyering <jim@meyering.net>1993-12-17 23:06:39 +0000
commitc350c27c3d97d079eca9f69f459162ced842031b (patch)
tree3ee27d0b4b6a9b04902b02506cb3985236bec143
parent1e5d680863dc7ab3826d532d4ffe5275d89fb574 (diff)
downloadgnulib-c350c27c3d97d079eca9f69f459162ced842031b.tar.gz
GNU file utilitiesFILEUTILS-3_9b
-rw-r--r--lib/fnmatch.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/fnmatch.h b/lib/fnmatch.h
index 5c94813f4b..69eab0c0d6 100644
--- a/lib/fnmatch.h
+++ b/lib/fnmatch.h
@@ -34,6 +34,13 @@ extern "C" {
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. */