4 *-------------------------------------------------------------------------
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 *-------------------------------------------------------------------------
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.
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 */