summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorcgd <cgd@NetBSD.org>1996-12-18 22:27:29 +0000
committercgd <cgd@NetBSD.org>1996-12-18 22:27:29 +0000
commit0b2b5475a448bd19d8fc717ad0b09306ff3f00a9 (patch)
tree554818f56189c1eb9622174f2463b12e6983d662 /libexec
parent13d2436889147d46db681050b308f619b6b1344b (diff)
nclude dlfcn.h, and pull RLTD_LAZY in from there. Assume that RTLD_NOW is
RLTD_LAZY + 1 (for now), if it's not defined. RTLD_NOW should be defined in dlfcn.h, since some code (e.g. X11) wants it and assumes that it has the value currently used by our RTLD_LAZY.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/ld.elf_so/rtld.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/libexec/ld.elf_so/rtld.c b/libexec/ld.elf_so/rtld.c
index 302f04d34cc..6db58328240 100644
--- a/libexec/ld.elf_so/rtld.c
+++ b/libexec/ld.elf_so/rtld.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld.c,v 1.1 1996/12/16 20:38:03 cgd Exp $ */
+/* $NetBSD: rtld.c,v 1.2 1996/12/18 22:27:29 cgd Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -51,12 +51,13 @@
#include <ctype.h>
+#include <dlfcn.h>
#include "debug.h"
#include "rtld.h"
-/* FIXME - Theses don't belong here. */
-#define RTLD_LAZY 1
-#define RTLD_NOW 2
+#ifndef RTLD_NOW
+#define RTLD_NOW (RTLD_LAZY + 1)
+#endif
/*
* Debugging support.