Skip to content

Commit

Permalink
Don't use native realpath(3) on Solaris
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jeremyevans committed Jul 1, 2019
1 parent f53d7e4 commit 142617c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions file.c
Expand Up @@ -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>
Expand Down

0 comments on commit 142617c

Please sign in to comment.