about summary refs log tree commit diff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorDuncan Simpson <dps@simpson.demon.co.uk>2009-07-23 12:39:17 -0700
committerUlrich Drepper <drepper@redhat.com>2009-07-23 12:39:17 -0700
commit30a2dfd5181ab0fc61ef4f4ab5f7122e41a5ff50 (patch)
tree08c6c9e00bb92c08d431f923c33f686fd8db2590 /include/unistd.h
parent9b6bf8a30292288c9536efb72d80020f189bf9a6 (diff)
downloadglibc-30a2dfd5181ab0fc61ef4f4ab5f7122e41a5ff50.tar.gz
glibc-30a2dfd5181ab0fc61ef4f4ab5f7122e41a5ff50.tar.xz
glibc-30a2dfd5181ab0fc61ef4f4ab5f7122e41a5ff50.zip
Make include/unistd.h suitable for C++ test cases.
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index 72d7e2e88c..ccba893abe 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -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