summaryrefslogtreecommitdiff
path: root/ext/DynaLoader/dl_aix.xs
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-10-08 13:51:34 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-10-08 13:51:34 +0000
commitc88be79fccb80fda2b9ad01fb180cda4529bca38 (patch)
treeabeb79248c207f0d5e445f13d8f58dd5229d5715 /ext/DynaLoader/dl_aix.xs
parent4e774c8419d3eafeeaf002f3bd7b53c6ac99d4c1 (diff)
downloadperl-c88be79fccb80fda2b9ad01fb180cda4529bca38.tar.gz
The second cut at AIX C++ extension troubles.
p4raw-id: //depot/cfgperl@4318
Diffstat (limited to 'ext/DynaLoader/dl_aix.xs')
-rw-r--r--ext/DynaLoader/dl_aix.xs8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/DynaLoader/dl_aix.xs b/ext/DynaLoader/dl_aix.xs
index e3a4113f8b..798ed58d31 100644
--- a/ext/DynaLoader/dl_aix.xs
+++ b/ext/DynaLoader/dl_aix.xs
@@ -33,10 +33,12 @@
* of load() and unload() from libC and libC_r need to be used,
* otherwise statics in the extensions won't get initialized right.
* -- Stephanie Beals <bealzy@us.ibm.com> */
-#ifdef USE_xlC /* The define comes, when it comes, from hints/aix.pl. */
-# define LOAD loadAndInitialize
+#ifdef USE_libC /* The define comes, when it comes, from hints/aix.pl. */
+# define LOAD loadAndInit
# define UNLOAD terminateAndUnload
-# include <load.h>
+# ifdef USE_load_h
+# include <load.h>
+# endif
#else
# define LOAD load
# define UNLOAD unload