Loading...
include/fnmatch.h Libc-391.1.21 Libc-1698.100.8
--- Libc/Libc-391.1.21/include/fnmatch.h
+++ Libc/Libc-1698.100.8/include/fnmatch.h
@@ -58,7 +58,10 @@
 #ifndef	_FNMATCH_H_
 #define	_FNMATCH_H_
 
+#include <_bounds.h>
 #include <sys/cdefs.h>
+
+_LIBC_SINGLE_BY_DEFAULT()
 
 #define	FNM_NOMATCH	1	/* Match failed. */
 
@@ -68,7 +71,7 @@
 
 #define	FNM_NOSYS	(-1)	/* Reserved. */
 
-#if !defined(_ANSI_SOURCE) && !defined(_POSIX_C_SOURCE)
+#if !defined(_ANSI_SOURCE) && (!defined(_POSIX_C_SOURCE) || defined(_DARWIN_C_SOURCE))
 #define	FNM_LEADING_DIR	0x08	/* Ignore /<tail> after Imatch. */
 #define	FNM_CASEFOLD	0x10	/* Case insensitive search. */
 #define	FNM_IGNORECASE	FNM_CASEFOLD
@@ -76,7 +79,15 @@
 #endif
 
 __BEGIN_DECLS
-int	 fnmatch(const char *, const char *, int);
+//Begin-Libc
+#ifndef LIBC_ALIAS_FNMATCH
+//End-Libc
+int	 fnmatch(const char *, const char *, int) __DARWIN_ALIAS(fnmatch);
+//Begin-Libc
+#else /* LIBC_ALIAS_FNMATCH */
+int	 fnmatch(const char *, const char *, int) LIBC_ALIAS(fnmatch);
+#endif /* !LIBC_ALIAS_FNMATCH */
+//End-Libc
 __END_DECLS
 
 #endif /* !_FNMATCH_H_ */