]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make include/unistd.h suitable for C++ test cases.
authorDuncan Simpson <dps@simpson.demon.co.uk>
Thu, 23 Jul 2009 19:39:17 +0000 (12:39 -0700)
committerUlrich Drepper <drepper@redhat.com>
Thu, 23 Jul 2009 19:39:17 +0000 (12:39 -0700)
ChangeLog
include/unistd.h

index 31ff6a17d31c135b3e0132ebf3f794dcc75b6047..79aeb83274ee28db4b85e3fbe9e938e8b7879f11 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2009-07-23  Ulrich Drepper  <drepper@redhat.com>
 
+       [BZ #10416]
+       * include/unistd.h: Make header file suitable for C++ test cases.
+       Patch by Duncan Simpson <dps@simpson.demon.co.uk>.
+
        * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the
        stack alignment in the exit code.
 
index 72d7e2e88ce86e002b7551a7b993aeaac3ee9259..ccba893abea4582928a9a04845fc8cf16581d7f7 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _UNISTD_H
 # include <posix/unistd.h>
 
+__BEGIN_DECLS
+
 libc_hidden_proto (_exit, __noreturn__)
 libc_hidden_proto (alarm)
 libc_hidden_proto (confstr)
@@ -174,4 +176,6 @@ extern int __have_sock_cloexec;
    unless it is really necessary.  */
 #define __have_pipe2 __have_sock_cloexec
 
+__END_DECLS
+
 #endif