From: Alexandre Oliva Date: Sat, 21 Nov 1998 07:45:20 +0000 (+0000) Subject: * libltdl/ltdl.c: replace NULL with 0, so that we don't depend on X-Git-Tag: start~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=405661a0fae1f19aa0063e7eca8217932b88da62;p=thirdparty%2Flibtool.git * libltdl/ltdl.c: replace NULL with 0, so that we don't depend on header files defining it. --- diff --git a/ChangeLog b/ChangeLog index cd3e08c34..b402c54be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 1998-11-21 Alexandre Oliva + * libltdl/ltdl.c: replace NULL with 0, so that we don't depend on + header files defining it. + * ltconfig.in (archive_cmds, osf3, osf4, solaris, sunos4): create libraries with gcc -shared if using gcc without GNU ld. diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index 7afdf93aa..3d7841bd9 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -51,7 +51,7 @@ sys_dlopen (char *filename) s++; } if (!s->name) - return NULL; + return 0; return (void*)s; } @@ -66,7 +66,7 @@ sys_dlsym (lt_dlhandle handle, char *symbol) struct dld_symlist *s = (struct dld_symlist*)handle; if (!s) - return NULL; + return 0; s++; while (s->address) { if (!strncmp(s->name, "ltexp_", 6)) { @@ -76,7 +76,7 @@ sys_dlsym (lt_dlhandle handle, char *symbol) } s++; } - return NULL; + return 0; } #else @@ -168,7 +168,7 @@ sys_dlsym (lt_dlhandle handle, char *symbol) for (i = 0; i < status; i++) if (strcmp(symbol, sym[i].name) == 0) return sym[i].value; - return NULL; + return 0; } #else @@ -185,7 +185,7 @@ static lt_dlhandle sys_dlopen (char *filename) { if (dld_link (filename)) - return NULL; + return 0; return filename; } @@ -243,7 +243,7 @@ sys_dlinit (void) static lt_dlhandle sys_dlopen (char *filename) { - return NULL; + return 0; } static void @@ -254,7 +254,7 @@ sys_dlclose (lt_dlhandle handle) static void * sys_dlsym (lt_dlhandle handle, char *symbol) { - return NULL; + return 0; } #endif