1
/*-------------------------------------------------------------------------
3
* Dynamic loader declarations for Cygwin
5
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
6
* Portions Copyright (c) 1994, Regents of the University of California
10
*-------------------------------------------------------------------------
16
#include "utils/dynamic_loader.h"
19
* In some older systems, the RTLD_NOW flag isn't defined and the mode
20
* argument to dlopen must always be 1. The RTLD_GLOBAL flag is wanted
21
* if available, but it doesn't exist everywhere.
22
* If it doesn't exist, set it to 0 so it has no effect.
31
#define pg_dlopen(f) dlopen((f), RTLD_NOW | RTLD_GLOBAL)
32
#define pg_dlsym dlsym
33
#define pg_dlclose dlclose
34
#define pg_dlerror dlerror
36
#endif /* PORT_PROTOS_H */