From: Duncan Simpson Date: Thu, 23 Jul 2009 19:39:17 +0000 (-0700) Subject: Make include/unistd.h suitable for C++ test cases. X-Git-Tag: fedora/glibc-2.10.90-9~1^2~20 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=30a2dfd5181ab0fc61ef4f4ab5f7122e41a5ff50;p=thirdparty%2Fglibc.git Make include/unistd.h suitable for C++ test cases. --- diff --git a/ChangeLog b/ChangeLog index 31ff6a17d31..79aeb83274e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2009-07-23 Ulrich Drepper + [BZ #10416] + * include/unistd.h: Make header file suitable for C++ test cases. + Patch by Duncan Simpson . + * sysdeps/unix/sysv/linux/i386/makecontext.S: Ensure we preserve the stack alignment in the exit code. diff --git a/include/unistd.h b/include/unistd.h index 72d7e2e88ce..ccba893abea 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -1,6 +1,8 @@ #ifndef _UNISTD_H # include +__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