diff options
author | jdp <jdp@FreeBSD.org> | 1997-01-12 19:59:26 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1997-01-12 19:59:26 +0000 |
commit | 75efa0b561fdd79b6975450b634175b05f148bc6 (patch) | |
tree | 753478946803c08cbc552e7565da7df978468907 /libexec | |
parent | 9083c9a4a08e1842f17bd841fcfc3b37ecef4108 (diff) | |
download | FreeBSD-src-75efa0b561fdd79b6975450b634175b05f148bc6.zip FreeBSD-src-75efa0b561fdd79b6975450b634175b05f148bc6.tar.gz |
Use the RTLD_NOW symbol, now that it is defined in <dlfcn.h>.
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/rtld-aout/rtld.c | 7 |
1 files changed, 3 insertions, 4 deletions
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 <sys/param.h> @@ -41,6 +41,7 @@ #ifndef MAP_COPY #define MAP_COPY MAP_PRIVATE #endif +#include <dlfcn.h> #include <err.h> #include <fcntl.h> #include <a.out.h> @@ -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 <dlfcn.h> and testing for problems. */ + int bind_now = mode == RTLD_NOW; /* * path == NULL is handled by map_object() |