summaryrefslogtreecommitdiff
path: root/package/libtirpc/patches/patch-tirpc_misc_event_h
blob: 7fc07813f534d27e6b658d04ee6434454aa8e577 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- libtirpc-0.2.3.orig/tirpc/misc/event.h	2013-02-13 16:13:59.000000000 +0100
+++ libtirpc-0.2.3/tirpc/misc/event.h	2014-03-22 13:20:52.000000000 +0100
@@ -186,15 +186,18 @@ extern int	kqueue_del_filteropts(int fil
 
 #else 	/* !_KERNEL */
 
-#include <sys/cdefs.h>
 struct timespec;
 
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
 int     kqueue(void);
 int     kevent(int kq, const struct kevent *changelist, int nchanges,
 	    struct kevent *eventlist, int nevents,
 	    const struct timespec *timeout);
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* !_KERNEL */