Skip to content

Commit e88bde0

Browse files
author
Andi Gutmans
committed
- Fix compile problem on FreeBSD.
1 parent 8b80777 commit e88bde0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ext/standard/dl.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,14 @@
2626
#include <stdlib.h>
2727
#include <stdio.h>
2828
#ifndef RTLD_LAZY
29-
# define RTLD_LAZY 1 /* Solaris 1, FreeBSD's (2.1.7.1 and older) */
29+
#define RTLD_LAZY 1 /* Solaris 1, FreeBSD's (2.1.7.1 and older) */
3030
#endif
31+
32+
#ifndef RTLD_NOW /* Fixes compile problem on FreeBSD */
33+
#define RTLD_NOW RTLD_LAZY
34+
#endif
35+
36+
3137
#if HAVE_STRING_H
3238
#include <string.h>
3339
#else

0 commit comments

Comments
 (0)