summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAndi Gutmans <andi@php.net>2000-03-18 16:16:15 +0000
committerAndi Gutmans <andi@php.net>2000-03-18 16:16:15 +0000
commite88bde0a737cb823026823c54f42c1817882d6ff (patch)
tree992ea9993fa51999daaf75fb72c42c61aed74f1c /ext
parent8b8077709efc0d569e7c876b331636ef499c5ccb (diff)
downloadphp-git-e88bde0a737cb823026823c54f42c1817882d6ff.tar.gz
- Fix compile problem on FreeBSD.
Diffstat (limited to 'ext')
-rw-r--r--ext/standard/dl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/ext/standard/dl.c b/ext/standard/dl.c
index 651b84e665..4a2357f967 100644
--- a/ext/standard/dl.c
+++ b/ext/standard/dl.c
@@ -26,8 +26,14 @@
#include <stdlib.h>
#include <stdio.h>
#ifndef RTLD_LAZY
-# define RTLD_LAZY 1 /* Solaris 1, FreeBSD's (2.1.7.1 and older) */
+#define RTLD_LAZY 1 /* Solaris 1, FreeBSD's (2.1.7.1 and older) */
#endif
+
+#ifndef RTLD_NOW /* Fixes compile problem on FreeBSD */
+#define RTLD_NOW RTLD_LAZY
+#endif
+
+
#if HAVE_STRING_H
#include <string.h>
#else