aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--file.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/file.c b/file.c
index 16d4df1bfb..50d1765d02 100644
--- a/file.c
+++ b/file.c
@@ -146,6 +146,11 @@ int flock(int, int);
# define UTIME_EINVAL
#endif
+/* Solaris 10 realpath(3) doesn't support File.realpath */
+#if defined HAVE_REALPATH && defined __sun && defined __SVR4
+#undef HAVE_REALPATH
+#endif
+
#ifdef HAVE_REALPATH
#include <limits.h>
#include <stdlib.h>