Test _ISOMAC in include/sys/syslog.h
Joseph S. Myers
joseph@codesourcery.com
Fri Nov 2 15:20:00 GMT 2012
The conform/ tests for syslog.h fail because the internal
include/sys/syslog.h has internal declarations that do not work in the
header conformance tests. The approach used by the other internal
include/ headers is to disable those declaration for _ISOMAC. This
patch does this for sys/syslog.h.
Tested x86_64. This removes a conform/ failure for each standard
including syslog.h.
2012-11-02 Joseph Myers <joseph@codesourcery.com>
* include/sys/syslog.h [_ISOMAC]: Disable all contents of file
except include of <misc/sys/syslog.h>.
diff --git a/include/sys/syslog.h b/include/sys/syslog.h
index c08cfcd..3be3189 100644
--- a/include/sys/syslog.h
+++ b/include/sys/syslog.h
@@ -1,5 +1,6 @@
#include <misc/sys/syslog.h>
+#ifndef _ISOMAC
libc_hidden_proto (syslog)
libc_hidden_proto (vsyslog)
@@ -7,3 +8,4 @@ extern void __vsyslog_chk (int __pri, int __flag, const char *__fmt,
__gnuc_va_list __ap)
__attribute__ ((__format__ (__printf__, 3, 0)));
libc_hidden_proto (__vsyslog_chk)
+#endif
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list