Return-Path: Delivered-To: apache-cvs-archive@hyperreal.org Received: (qmail 9068 invoked by uid 6000); 7 Feb 1998 01:07:13 -0000 Received: (qmail 9061 invoked by alias); 7 Feb 1998 01:07:12 -0000 Delivered-To: apache-1.3-cvs@hyperreal.org Received: (qmail 9059 invoked by uid 149); 7 Feb 1998 01:07:12 -0000 Date: 7 Feb 1998 01:07:12 -0000 Message-ID: <19980207010712.9058.qmail@hyperreal.org> From: marc@hyperreal.org To: apache-1.3-cvs@hyperreal.org Subject: cvs commit: apache-1.3/src/modules/standard mod_so.c Sender: apache-cvs-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org marc 98/02/06 17:07:11 Modified: src/modules/standard mod_so.c Log: Modify to deal with systems that don't define RTLD_* macros. We are lying when we use RTLD_NOW in such systems, but we have no choice. Revision Changes Path 1.4 +7 -4 apache-1.3/src/modules/standard/mod_so.c Index: mod_so.c =================================================================== RCS file: /export/home/cvs/apache-1.3/src/modules/standard/mod_so.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- mod_so.c 1998/02/06 18:16:45 1.3 +++ mod_so.c 1998/02/07 01:07:11 1.4 @@ -147,7 +147,6 @@ #endif #if defined(__FreeBSD__) -#define NEED_RTLD_LAZY #define NEED_UNDERSCORE_SYM #endif @@ -160,15 +159,19 @@ #ifdef HAS_DLFCN #include #else -#define NEED_RTLD_LAZY void * dlopen (__const char * __filename, int __flag); __const char * dlerror (void); void * dlsym (void *, __const char *); int dlclose (void *); #endif -#ifdef NEED_RTLD_LAZY -#define RTLD_LAZY 1 +#ifndef RTLD_NOW +/* + * probably on an older system that doesn't support RTLD_NOW or RTLD_LAZY. + * The below define is a lie since we are really doing RTLD_LAZY since the + * system doesn't support RTLD_NOW. + */ +#define RTLD_NOW 1 #endif static int have_symbol_table = 0;