summaryrefslogtreecommitdiff
path: root/databases/postgresql74/files
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-01-25 05:21:53 +0000
committertv <tv@pkgsrc.org>2005-01-25 05:21:53 +0000
commitf55888ad1b0716ef375067d6af97800c11637a89 (patch)
tree78b6881b5760fa2ba52e4588c3fa8705c231474d /databases/postgresql74/files
parent6ba698c58f4b9f4f18aaae49e38a13e0fae93ab1 (diff)
downloadpkgsrc-f55888ad1b0716ef375067d6af97800c11637a89.tar.gz
First attempt to provide a dynloader backend implementation for Interix,
using libltdl. (This could provide even more portability in the future.)
Diffstat (limited to 'databases/postgresql74/files')
-rw-r--r--databases/postgresql74/files/dynloader-ltdl.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/databases/postgresql74/files/dynloader-ltdl.h b/databases/postgresql74/files/dynloader-ltdl.h
new file mode 100644
index 00000000000..01b1fd31888
--- /dev/null
+++ b/databases/postgresql74/files/dynloader-ltdl.h
@@ -0,0 +1,15 @@
+/*
+ * dynamic loader based on libltdl
+ */
+#ifndef PORT_PROTOS_H
+#define PORT_PROTOS_H
+
+#include <ltdl.h>
+#include "utils/dynamic_loader.h"
+
+#define pg_dlopen(a) ((void *)lt_dlopen(a))
+#define pg_dlsym(a,b) lt_dlsym((lt_dlhandle)(a), (b))
+#define pg_dlclose(a) lt_dlclose((lt_dlhandle)(a))
+#define pg_dlerror lt_dlerror
+
+#endif /* PORT_PROTOS_H */