From d12254166a55d17932ea4143fbd50fb52539ff8b Mon Sep 17 00:00:00 2001 From: sin Date: Fri, 13 Mar 2015 23:09:15 +0000 Subject: Restore C++ support --- include/unistd.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/unistd.h') diff --git a/include/unistd.h b/include/unistd.h index aa4ddff..0e5119e 100644 --- a/include/unistd.h +++ b/include/unistd.h @@ -5,7 +5,10 @@ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 -#ifndef __cplusplus +#ifdef __cplusplus +extern "C" { +#endif + #undef confstr #undef getcwd #undef getgroups @@ -165,6 +168,8 @@ ssize_t write(int fd, const void *buf, size_t n) return __write_orig(fd, buf, n); } +#ifdef __cplusplus +} #endif #endif -- cgit v1.3