File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
92
92
#define uint32 uint32_t
93
93
#endif
94
94
95
+ #include <Zend/zend_portability.h>
96
+
95
97
struct lsapi_MD5Context {
96
98
uint32 buf [4 ];
97
99
uint32 bits [2 ];
@@ -767,7 +769,7 @@ static int (*fp_lve_leave)(struct liblve *, uint32_t *) = NULL;
767
769
static int (* fp_lve_jail )( struct passwd * , char * ) = NULL ;
768
770
static int lsapi_load_lve_lib (void )
769
771
{
770
- s_liblve = dlopen ("liblve.so.0" , RTLD_LAZY );
772
+ s_liblve = DL_LOAD ("liblve.so.0" );
771
773
if (s_liblve )
772
774
{
773
775
fp_lve_is_available = dlsym (s_liblve , "lve_is_available" );
Original file line number Diff line number Diff line change @@ -88,6 +88,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
88
88
#include <unistd.h>
89
89
#include "lscriu.h"
90
90
91
+ #include <Zend/zend_portability.h>
92
+
91
93
#define LSCRIU_PATH 256
92
94
93
95
// Begin CRIU inclusion
@@ -262,8 +264,8 @@ static int LSCRIU_load_liblscapi(void)
262
264
int error = 1 ;
263
265
char * last ;
264
266
265
- if (!(lib_handle = dlopen (last = "liblscapi.so" , RTLD_LAZY )) /*||
266
- !(pthread_lib_handle = dlopen (last = "libpthread.so", RTLD_LAZY ))*/ )
267
+ if (!(lib_handle = DL_LOAD (last = "liblscapi.so" )) /*||
268
+ !(pthread_lib_handle = DL_LOAD (last = "libpthread.so"))*/ )
267
269
fprintf (stderr , "LSCRIU (%d): failed to dlopen %s: %s - ignore CRIU\n" ,
268
270
s_pid , last , dlerror ());
269
271
else if (!(s_lscapi_dump_me = dlsym (lib_handle , last = "lscapi_dump_me" )) ||
You can’t perform that action at this time.
0 commit comments