1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-21 14:53:44 +03:00

more portability patches from Albert Chin for HP-UX and AIX Daniel

* xmlIO.c xmlmodule.c: more portability patches from Albert Chin for
  HP-UX and AIX
Daniel
This commit is contained in:
Daniel Veillard
2005-10-28 14:54:17 +00:00
parent 1d96f5aa97
commit 9b693b489d
3 changed files with 15 additions and 7 deletions

View File

@@ -195,6 +195,10 @@ xmlModuleFree(xmlModulePtr module)
#include <dlfcn.h>
#endif
#ifndef RTLD_GLOBAL /* For Tru64 UNIX 4.0 */
#define RTLD_GLOBAL 0
#endif
/**
* xmlModulePlatformOpen:
* @name: path to the module
@@ -277,10 +281,7 @@ xmlModulePlatformSymbol(void *handle, const char *name, void **symbol)
int rc;
errno = 0;
rc = shl_findsym(&handle, name, TYPE_PROCEDURE, symbol);
if ((-1 == rc) && (0 == errno)) {
rc = shl_findsym(handle, name, TYPE_DATA, symbol);
}
rc = shl_findsym(&handle, name, TYPE_UNDEFINED, symbol);
return rc;
}