#define uint32 uint32_t
#endif
+#include <Zend/zend_portability.h>
+
struct lsapi_MD5Context {
uint32 buf[4];
uint32 bits[2];
static int (*fp_lve_jail)( struct passwd *, char *) = NULL;
static int lsapi_load_lve_lib(void)
{
- s_liblve = dlopen("liblve.so.0", RTLD_LAZY);
+ s_liblve = DL_LOAD("liblve.so.0");
if (s_liblve)
{
fp_lve_is_available = dlsym(s_liblve, "lve_is_available");
#include <unistd.h>
#include "lscriu.h"
+#include <Zend/zend_portability.h>
+
#define LSCRIU_PATH 256
// Begin CRIU inclusion
int error = 1;
char *last;
- if (!(lib_handle = dlopen(last = "liblscapi.so", RTLD_LAZY)) /*||
- !(pthread_lib_handle = dlopen(last = "libpthread.so", RTLD_LAZY))*/)
+ if (!(lib_handle = DL_LOAD(last = "liblscapi.so")) /*||
+ !(pthread_lib_handle = DL_LOAD(last = "libpthread.so"))*/)
fprintf(stderr, "LSCRIU (%d): failed to dlopen %s: %s - ignore CRIU\n",
s_pid, last, dlerror());
else if (!(s_lscapi_dump_me = dlsym(lib_handle, last = "lscapi_dump_me")) ||