From 75efa0b561fdd79b6975450b634175b05f148bc6 Mon Sep 17 00:00:00 2001 From: jdp Date: Sun, 12 Jan 1997 19:59:26 +0000 Subject: Use the RTLD_NOW symbol, now that it is defined in . --- libexec/rtld-aout/rtld.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libexec/rtld-aout') diff --git a/libexec/rtld-aout/rtld.c b/libexec/rtld-aout/rtld.c index 88e5b27..5ac250f 100644 --- a/libexec/rtld-aout/rtld.c +++ b/libexec/rtld-aout/rtld.c @@ -27,7 +27,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: rtld.c,v 1.40 1996/10/24 16:24:19 jdp Exp $ + * $Id: rtld.c,v 1.41 1997/01/12 00:16:36 jdp Exp $ */ #include @@ -41,6 +41,7 @@ #ifndef MAP_COPY #define MAP_COPY MAP_PRIVATE #endif +#include #include #include #include @@ -1830,9 +1831,7 @@ __dlopen(path, mode) { struct so_map *old_tail = link_map_tail; struct so_map *smp; - int bind_now = mode == 2; - /* XXX - s/2/RTLD_NOW/ in the above line, after putting the necessary - defines into and testing for problems. */ + int bind_now = mode == RTLD_NOW; /* * path == NULL is handled by map_object() -- cgit v1.1