Fix xslt_process() to ensure that it inserts a NULL terminator after the
[PostgreSQL.git] / src / backend / port / dynloader / unixware.h
blob3a1b72ed901184b200aeb509334909a23bdffd2f
1 /*
2 * $PostgreSQL$
4 *-------------------------------------------------------------------------
6 * unixware.h
7 * port-specific prototypes for Intel x86/UNIXWARE 7
10 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
11 * Portions Copyright (c) 1994, Regents of the University of California
13 * unixware.h,v 1.2 1995/03/17 06:40:18 andrew Exp
15 *-------------------------------------------------------------------------
17 #ifndef PORT_PROTOS_H
18 #define PORT_PROTOS_H
20 #include <dlfcn.h>
21 #include "utils/dynamic_loader.h"
24 * Dynamic Loader on Intel x86/Intel SVR4.
26 * this dynamic loader uses the system dynamic loading interface for shared
27 * libraries (ie. dlopen/dlsym/dlclose). The user must specify a shared
28 * library as the file to be dynamically loaded.
32 * In some older systems, the RTLD_NOW flag isn't defined and the mode
33 * argument to dlopen must always be 1. The RTLD_GLOBAL flag is wanted
34 * if available, but it doesn't exist everywhere.
35 * If it doesn't exist, set it to 0 so it has no effect.
37 #ifndef RTLD_NOW
38 #define RTLD_NOW 1
39 #endif
40 #ifndef RTLD_GLOBAL
41 #define RTLD_GLOBAL 0
42 #endif
44 #define pg_dlopen(f) dlopen((f), RTLD_NOW | RTLD_GLOBAL)
45 #define pg_dlsym dlsym
46 #define pg_dlclose dlclose
47 #define pg_dlerror dlerror
49 #endif /* PORT_PROTOS_H */