aboutsummaryrefslogtreecommitdiff
path: root/src/backend/port/dynloader/aix.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2000-09-29 22:00:49 +0000
committerBruce Momjian <bruce@momjian.us>2000-09-29 22:00:49 +0000
commit469ebeefd644e829facdb9fab2dc8b8a47352795 (patch)
tree8c59f1a259d4f186468348988d8fe168e7f48166 /src/backend/port/dynloader/aix.c
parent72ad5fe15c93fefa8debb0fc8ef5c85b560ffac7 (diff)
downloadpostgresql-469ebeefd644e829facdb9fab2dc8b8a47352795.tar.gz
postgresql-469ebeefd644e829facdb9fab2dc8b8a47352795.zip
Please apply the following patch to fix problems with the AIX port
and the fmgr redesign. It makes the homebrewn dl*() functions for more recent Versions of AIX obsolete by using the system dl*() functions instead. It also fixes the expected file for the horology regression test. Please regenerate configure from configure.in, I don't have the environment/time. Andreas
Diffstat (limited to 'src/backend/port/dynloader/aix.c')
-rw-r--r--src/backend/port/dynloader/aix.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/backend/port/dynloader/aix.c b/src/backend/port/dynloader/aix.c
index c6295406e22..c1556bb1c20 100644
--- a/src/backend/port/dynloader/aix.c
+++ b/src/backend/port/dynloader/aix.c
@@ -14,6 +14,13 @@
#include "postgres.h"
#include "dynloader.h"
+#ifndef HAVE_DLOPEN
+
+/*
+ * AIX 4.3 and up has dlopen() and friends in -ldl.
+ * A la long, the homebrewn dl*() functions below should be obsolete.
+ */
+
/*
* We simulate dlopen() et al. through a call to load. Because AIX has
* no call to find an exported symbol we read the loader section of the
@@ -601,3 +608,5 @@ findMain(void)
free(buf);
return ret;
}
+
+#endif /* HAVE_DLOPEN */