mirror of
git://git.savannah.gnu.org/libtool.git
synced 2024-11-21 01:40:57 +08:00
* libltdl/ltdl.c: replace NULL with 0, so that we don't depend on
header files defining it.
This commit is contained in:
parent
02424f059f
commit
405661a0fa
@ -1,5 +1,8 @@
|
||||
1998-11-21 Alexandre Oliva <oliva@dcc.unicamp.br>
|
||||
|
||||
* 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.
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user