Doesn't compile due to lack of RTLD_GLOBAL
I'm compiling on HP-UX 10.20 with the hp_dlfcn compatibility package installed.
There is no RTLD_GLOBAL in dlfcn.h, so libao doesn't build. I patched around it
like this:
--- src/ao_private.h 2001/12/17 14:06:50 1.6
+++ src/ao_private.h 2002/01/16 15:30:33
@@ -42,7 +42,7 @@
*
* ALSA requires RTLD_GLOBAL.
*/
-#if defined(__OpenBSD__)
+#if defined(__OpenBSD__) || defined(hpux)
#define DLOPEN_FLAG (RTLD_LAZY)
#else
#define DLOPEN_FLAG (RTLD_NOW | RTLD_GLOBAL)
but that's a sloppy way to do it; it should be handled by autoconf.