summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-25 14:17:21 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-25 14:17:21 +0000
commitc36cd3171366e13b6b5d50e2c3a2c7269cd8e89c (patch)
treec1c948fedb209d6b9fbfd9b79cd1853c67f3a1c6 /lib
parent5e12ce118622705111df38043132b336590604b0 (diff)
downloadrsync-c36cd3171366e13b6b5d50e2c3a2c7269cd8e89c.tar.gz
rsync-c36cd3171366e13b6b5d50e2c3a2c7269cd8e89c.tar.bz2
rsync-c36cd3171366e13b6b5d50e2c3a2c7269cd8e89c.zip
the convoluted nest of #ifdefs that is fnmatch.c caught us again. On
my system the LIBC tests meant it never compiled and we used the broken system one. hacked it so it does compile
Diffstat (limited to 'lib')
-rw-r--r--lib/fnmatch.c4
-rw-r--r--lib/fnmatch.h6
2 files changed, 6 insertions, 4 deletions
diff --git a/lib/fnmatch.c b/lib/fnmatch.c
index dd6297c6..2feeac51 100644
--- a/lib/fnmatch.c
+++ b/lib/fnmatch.c
@@ -48,7 +48,6 @@
#endif
#endif /* 0 */
-
/* For platform which support the ISO C amendement 1 functionality we
support user defined character classes. */
#if defined _LIBC || (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H)
@@ -65,8 +64,7 @@
program understand `configure --with-gnu-libc' and omit the object files,
it is simpler to just do this in the source for each such file. */
-#if defined _LIBC || !defined __GNU_LIBRARY__
-
+#if 1
# if defined STDC_HEADERS || !defined isascii
# define ISASCII(c) 1
diff --git a/lib/fnmatch.h b/lib/fnmatch.h
index eeaee7fb..cc75ffdc 100644
--- a/lib/fnmatch.h
+++ b/lib/fnmatch.h
@@ -55,9 +55,13 @@ extern "C" {
#define FNM_NOESCAPE (1 << 1) /* Backslashes don't quote special chars. */
#define FNM_PERIOD (1 << 2) /* Leading `.' is matched only explicitly. */
-#if !defined _POSIX_C_SOURCE || _POSIX_C_SOURCE < 2 || defined _GNU_SOURCE
+#ifndef FNM_FILE_NAME
# define FNM_FILE_NAME FNM_PATHNAME /* Preferred GNU name. */
+#endif
+#ifndef FNM_LEADING_DIR
# define FNM_LEADING_DIR (1 << 3) /* Ignore `/...' after a match. */
+#endif
+#ifndef FNM_CASEFOLD
# define FNM_CASEFOLD (1 << 4) /* Compare without regard to case. */
#endif