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/poll.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/poll.h') diff --git a/include/poll.h b/include/poll.h index 93976dd..6469acb 100644 --- a/include/poll.h +++ b/include/poll.h @@ -5,7 +5,10 @@ #if defined(_FORTIFY_SOURCE) && _FORTIFY_SOURCE > 0 && defined(__OPTIMIZE__) && __OPTIMIZE__ > 0 -#ifndef __cplusplus +#ifdef __cplusplus +extern "C" { +#endif + #undef poll extern int __poll_orig(struct pollfd *, nfds_t, int) @@ -35,6 +38,8 @@ int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const } #endif +#ifdef __cplusplus +} #endif #endif -- cgit v1.3