aboutsummaryrefslogtreecommitdiffstats
path: root/file.c
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-07-01 15:33:13 -0700
committerJeremy Evans <code@jeremyevans.net>2019-07-01 15:33:13 -0700
commit142617c8e1cad65fa483c5beb78ab40a99626a87 (patch)
tree42adb52f00d8f6642e3c3dee5ba09765a5ae82e7 /file.c
parentf53d7e4bfd604be6f8131c5460c29f4af16da117 (diff)
downloadruby-142617c8e1cad65fa483c5beb78ab40a99626a87.tar.gz
Don't use native realpath(3) on Solaris
CI shows it does work on Solaris 11, but does not work on Solaris 10. However, until I figure out a good way to differentiate between Solaris 10 and 11, this should get CI passing on both.
Diffstat (limited to 'file.c')
-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>