diff src/config.h.in @ 4721:19d70297d866

Make readlink_or_correct_case function correctly on Darwin. src/ChangeLog addition: 2009-10-26 Aidan Kehoe <kehoea@parhasard.net> * config.h.in (REALPATH_CORRECTS_CASE): New #define, available on Darwin. * realpath.c (readlink_or_correct_case): On Darwin, use realpath(3)'s case correction to get the canonical case for a file; thank you Robert Delius Royar!
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 26 Oct 2009 09:42:20 +0000
parents 0e1461b592ce
children 80d74fed5399
line wrap: on
line diff
--- a/src/config.h.in	Sat Oct 24 15:33:23 2009 +0100
+++ b/src/config.h.in	Mon Oct 26 09:42:20 2009 +0000
@@ -340,6 +340,11 @@
 #undef DLSYM_NEEDS_UNDERSCORE
 #undef HAVE_SHLIB
 
+/* Darwin; realpath corrects for case: */
+#ifdef HAVE_DYLD
+#define REALPATH_CORRECTS_CASE 1
+#endif
+
 #undef HAVE_LIBINTL
 #undef HAVE_LIBDNET
 #undef HAVE_LIBRESOLV