summaryrefslogtreecommitdiff
path: root/src/backend/port/dynloader/aix.h
diff options
context:
space:
mode:
authorBruce Momjian2000-09-29 22:00:49 +0000
committerBruce Momjian2000-09-29 22:00:49 +0000
commit469ebeefd644e829facdb9fab2dc8b8a47352795 (patch)
tree8c59f1a259d4f186468348988d8fe168e7f48166 /src/backend/port/dynloader/aix.h
parent72ad5fe15c93fefa8debb0fc8ef5c85b560ffac7 (diff)
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.h')
-rw-r--r--src/backend/port/dynloader/aix.h27
1 files changed, 19 insertions, 8 deletions
diff --git a/src/backend/port/dynloader/aix.h b/src/backend/port/dynloader/aix.h
index ee19b47ea45..35b3a0d0aa2 100644
--- a/src/backend/port/dynloader/aix.h
+++ b/src/backend/port/dynloader/aix.h
@@ -1,13 +1,19 @@
/*
- * $Id: aix.h,v 1.2 1998/09/01 04:30:51 momjian Exp $
+ * $Id: aix.h,v 1.3 2000/09/29 22:00:43 momjian Exp $
*
* @(#)dlfcn.h 1.4 revision of 95/04/25 09:36:52
* This is an unpublished work copyright (c) 1992 HELIOS Software GmbH
* 30159 Hannover, Germany
*/
-#ifndef __dlfcn_h__
-#define __dlfcn_h__
+#ifndef PORT_PROTOS_H
+#define PORT_PROTOS_H
+
+#ifdef HAVE_DLOPEN
+
+#include <dlfcn.h>
+
+#else /* HAVE_DLOPEN */
#ifdef __cplusplus
extern "C"
@@ -48,9 +54,14 @@ extern "C"
#endif
-#define pg_dlopen(f) dlopen(filename, RTLD_LAZY)
-#define pg_dlsym(h,f) dlsym(h, f)
-#define pg_dlclose(h) dlclose(h)
-#define pg_dlerror() dlerror()
+#endif /* HAVE_DLOPEN */
+
+#include "fmgr.h"
+#include "utils/dynamic_loader.h"
+
+#define pg_dlopen(f) dlopen(f, RTLD_LAZY)
+#define pg_dlsym dlsym
+#define pg_dlclose dlclose
+#define pg_dlerror dlerror
-#endif /* __dlfcn_h__ */
+#endif /* PORT_PROTOS_H */