]> git.saurik.com Git - apple/libc.git/blobdiff - gen/FreeBSD/dirname.c.patch
Libc-498.tar.gz
[apple/libc.git] / gen / FreeBSD / dirname.c.patch
diff --git a/gen/FreeBSD/dirname.c.patch b/gen/FreeBSD/dirname.c.patch
new file mode 100644 (file)
index 0000000..213726d
--- /dev/null
@@ -0,0 +1,18 @@
+Index: dirname.c
+===================================================================
+RCS file: /cvs/root/Libc/gen/FreeBSD/dirname.c,v
+retrieving revision 1.2
+diff -u -d -b -w -p -u -r1.2 dirname.c
+--- dirname.c  2003/05/20 22:21:01     1.2
++++ dirname.c  2004/12/10 18:48:49
+@@ -39,6 +39,10 @@ __FBSDID("$FreeBSD: src/lib/libc/gen/dir
+ #include <string.h>
+ #include <sys/param.h>
++#if __DARWIN_UNIX03
++#define const /**/
++#endif
++
+ char *
+ dirname(path)
+       const char *path;