summaryrefslogtreecommitdiff
path: root/src/backend/port/svr4/port-protos.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-08-19 13:50:44 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-08-19 13:50:44 +0000
commitefafd1506e57577d210c3a2fa424993c43461ab5 (patch)
treec44ea082ae83d5f6b2c572bd1775f8dca05121db /src/backend/port/svr4/port-protos.h
parentce8790bc107b218885638f1649fdcc99261ed72f (diff)
Added a SVR4 port
--- below my signature, there are a coupls of diffs and files in a shell archive, which were needed to build postgres95 1.02 on Siemens Nixdorfs MIPS based SINIX systems. Except for the compiler switches "-W0" and "-LD-Blargedynsym" these diffs should also apply for other SVR4 based systems. The changes in "Makefile.global" and "genbki.sh" can probably be ignored (I needed gawk, to make the script run). There is one bugfix thou. In "src/backend/parser/sysfunc.c" the function in this file didn't honor the EUROPEAN_DATES ifdef. --- Submitted by: Frank Ridderbusch <ridderbusch.pad@sni.de>
Diffstat (limited to 'src/backend/port/svr4/port-protos.h')
-rw-r--r--src/backend/port/svr4/port-protos.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/backend/port/svr4/port-protos.h b/src/backend/port/svr4/port-protos.h
new file mode 100644
index 00000000000..4b992570acd
--- /dev/null
+++ b/src/backend/port/svr4/port-protos.h
@@ -0,0 +1,38 @@
+/*-------------------------------------------------------------------------
+ *
+ * port-protos.h--
+ * port-specific prototypes for Intel x86/Intel SVR4
+ *
+ *
+ * Copyright (c) 1994, Regents of the University of California
+ *
+ * port-protos.h,v 1.2 1995/03/17 06:40:18 andrew Exp
+ *
+ *-------------------------------------------------------------------------
+ */
+#ifndef PORT_PROTOS_H
+#define PORT_PROTOS_H
+
+#include <dlfcn.h>
+#include "fmgr.h" /* for func_ptr */
+#include "utils/dynamic_loader.h"
+
+/* dynloader.c */
+/*
+ * Dynamic Loader on Intel x86/Intel SVR4.
+ *
+ * this dynamic loader uses the system dynamic loading interface for shared
+ * libraries (ie. dlopen/dlsym/dlclose). The user must specify a shared
+ * library as the file to be dynamically loaded.
+ *
+ */
+#define pg_dlopen(f) dlopen(f,RTLD_LAZY)
+#define pg_dlsym dlsym
+#define pg_dlclose dlclose
+#define pg_dlerror dlerror
+
+/* port.c */
+extern long random(void);
+extern void srandom(int seed);
+
+#endif /* PORT_PROTOS_H */