odyssey/sources/od_dlsym.h

18 lines
343 B
C
Raw Normal View History

2020-06-09 09:19:11 +00:00
#ifndef OD_DLSYM_H
#define OD_DLSYM_H
/*
* Odyssey.
*
* Scalable PostgreSQL connection pooler.
*/
#include "dlfcn.h"
#define od_dlopen(path) dlopen((char *)path, RTLD_NOW | RTLD_GLOBAL)
#define od_dlsym(handle, symbol) dlsym(handle, symbol)
#define od_dlerror dlerror
#define od_dlclose(handle) dlclose(handle)
#endif /* OD_DLSYM_H */