<div dir="ltr"><br>On AIX the xlc compiler generates two warnings for each source file<br>because the RTLD_ macros are defined before <dlfcn.h> is included.<br>This patch moves the definitions to after the include.<br>
<br>The patch applies against 3.0.3 and the CVS tarball. I've tested<br>it on AIX 5.3 with xlc (the IBM compiler) and gcc and also on<br>Linux (Ubuntu hardy, gcc 4.1.2).<br><br>Markus<br><br clear="all">diff --git a/include/<a href="http://config.h.in">config.h.in</a> b/include/<a href="http://config.h.in">config.h.in</a><br>
index d748487..2f2a40e 100644<br>--- a/include/<a href="http://config.h.in">config.h.in</a><br>+++ b/include/<a href="http://config.h.in">config.h.in</a><br>@@ -102,14 +102,6 @@<br> #define GETGROUPS_T ""<br> #define RETSIGTYPE ""<br>
<br>-#ifndef RTLD_GLOBAL<br>-#define RTLD_GLOBAL 0<br>-#endif<br>-<br>-#ifndef RTLD_NOW<br>-#define RTLD_NOW 0<br>-#endif<br>-<br><br><br> /***** HEADER FILES *****/<br>@@ -327,6 +319,14 @@<br> #endif<br> #endif<br><br>+#ifndef RTLD_GLOBAL<br>
+#define RTLD_GLOBAL 0<br>+#endif<br>+<br>+#ifndef RTLD_NOW<br>+#define RTLD_NOW 0<br>+#endif<br>+<br><br> /***** MARO DEFINITIONS *****/<br><br><br>-- <br>  Markus Baertschi             Phone: ++41 (21) 807 1677<br>  Bas du Rossé 16             Fax  : ++41 (21) 807 1678<br>
  CH-1163, Etoy                Email: <a href="mailto:markus@markus.org">markus@markus.org</a><br><span>  Switzerland                  Homepage: <a href="http://www.markus.org">www.markus.org</a></span><br>
</div>