This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Test _ISOMAC in include/sys/syslog.h
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Fri, 2 Nov 2012 15:19:49 +0000
- Subject: Test _ISOMAC in include/sys/syslog.h
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