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
diff --git a/xmlmodule.c b/xmlmodule.c
index a26089a..15bcf07 100644
--- a/xmlmodule.c
+++ b/xmlmodule.c
@@ -195,6 +195,10 @@
#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 @@
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;
}