[PATCH] AIX - fix for xlc compile warnings due to RTLD_ macro definitions
Markus Baertschi
markus at markus.org
Thu Oct 16 11:16:20 CEST 2008
On AIX the xlc compiler generates two warnings for each source file
because the RTLD_ macros are defined before <dlfcn.h> is included.
This patch moves the definitions to after the include.
The patch applies against 3.0.3 and the CVS tarball. I've tested
it on AIX 5.3 with xlc (the IBM compiler) and gcc and also on
Linux (Ubuntu hardy, gcc 4.1.2).
Markus
diff --git a/include/config.h.in b/include/config.h.in
index d748487..2f2a40e 100644
--- a/include/config.h.in
+++ b/include/config.h.in
@@ -102,14 +102,6 @@
#define GETGROUPS_T ""
#define RETSIGTYPE ""
-#ifndef RTLD_GLOBAL
-#define RTLD_GLOBAL 0
-#endif
-
-#ifndef RTLD_NOW
-#define RTLD_NOW 0
-#endif
-
/***** HEADER FILES *****/
@@ -327,6 +319,14 @@
#endif
#endif
+#ifndef RTLD_GLOBAL
+#define RTLD_GLOBAL 0
+#endif
+
+#ifndef RTLD_NOW
+#define RTLD_NOW 0
+#endif
+
/***** MARO DEFINITIONS *****/
--
Markus Baertschi Phone: ++41 (21) 807 1677
Bas du Rossé 16 Fax : ++41 (21) 807 1678
CH-1163, Etoy Email: markus at markus.org
Switzerland Homepage: www.markus.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20081016/daa5d62a/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel
More information about the Developers
mailing list