summaryrefslogtreecommitdiff
path: root/proto.h
diff options
context:
space:
mode:
authorCarl Hayter <hayter@usc.edu>2011-11-24 17:49:50 +0100
committerNicholas Clark <nick@ccl4.org>2011-12-03 13:34:21 +0100
commitc29067d7797853039f1acba2cddf71786ecd4b16 (patch)
tree3c2a8bc2310ecb9528f1de4ac9ef97cb0827e71d /proto.h
parent7e1dab6a61131a77ad847a43dacb66e48b0ab716 (diff)
downloadperl-c29067d7797853039f1acba2cddf71786ecd4b16.tar.gz
Make sitecustomize relocatableinc aware
When -Dusesitecustomize is used with -Duserelocatableinc, SITELIB_EXP/sitecustomize.pl is not found due to SITELIB_EXP having a '.../..' relocation path. This patch refactors the path relocation code from S_incpush() into S_mayberelocate() so that it can be used in both S_incpush() and in usesitecustomize's use of SITELIB_EXP.
Diffstat (limited to 'proto.h')
-rw-r--r--proto.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/proto.h b/proto.h
index b9689e64d3..7cc4c08ee5 100644
--- a/proto.h
+++ b/proto.h
@@ -5860,6 +5860,11 @@ STATIC void S_init_postdump_symbols(pTHX_ int argc, char **argv, char **env)
assert(argv)
STATIC void S_init_predump_symbols(pTHX);
+STATIC SV* S_mayberelocate(pTHX_ const char *const dir, STRLEN len, U32 flags)
+ __attribute__nonnull__(pTHX_1);
+#define PERL_ARGS_ASSERT_MAYBERELOCATE \
+ assert(dir)
+
STATIC void S_my_exit_jump(pTHX)
__attribute__noreturn__;