summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'util.h')
-rw-r--r--util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/util.h b/util.h
index beb5215e81..cb9f4c9f93 100644
--- a/util.h
+++ b/util.h
@@ -26,7 +26,11 @@
(*(f) == '/' \
|| ((f)[0] && (f)[1] == ':')) /* drive name */
# else /* !DOSISH */
-# define PERL_FILE_IS_ABSOLUTE(f) (*(f) == '/')
+# ifdef MACOS_TRADITIONAL
+# define PERL_FILE_IS_ABSOLUTE(f) (strchr(f, ':'))
+# else /* !MACOS_TRADITIONAL */
+# define PERL_FILE_IS_ABSOLUTE(f) (*(f) == '/')
+# endif /* MACOS_TRADITIONAL */
# endif /* DOSISH */
# endif /* WIN32 */
#endif /* VMS */