1 /*-------------------------------------------------------------------------
4 * Port-specific prototypes for Linux
7 * Portions Copyright (c) 1996-2008, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
12 *-------------------------------------------------------------------------
17 #include "utils/dynamic_loader.h"
26 * In some older systems, the RTLD_NOW flag isn't defined and the mode
27 * argument to dlopen must always be 1. The RTLD_GLOBAL flag is wanted
28 * if available, but it doesn't exist everywhere.
29 * If it doesn't exist, set it to 0 so it has no effect.
38 #define pg_dlopen(f) dlopen((f), RTLD_NOW | RTLD_GLOBAL)
39 #define pg_dlsym dlsym
40 #define pg_dlclose dlclose
41 #define pg_dlerror dlerror
42 #endif /* HAVE_DLOPEN */
44 #endif /* PORT_PROTOS_H */