aboutsummaryrefslogtreecommitdiff
path: root/net/chaosvpn/patches/020-cdefs.patch
blob: 5ea6949b38434349c1bdd203338c2512ce8c3b35 (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
25
26
27
28
29
30
31
32
--- a/ar.h
+++ b/ar.h
@@ -20,8 +20,6 @@
 #ifndef _AR_H
 #define _AR_H 1
 
-#include <sys/cdefs.h>
-
 /* Archive files start with the ARMAG identifying string.  Then follows a
    `struct ar_hdr', and as many bytes of member file data as its `ar_size'
    member indicates, for each member file.  */
@@ -31,7 +29,9 @@
 
 #define ARFMAG	"`\n"		/* String in ar_fmag at end of each header.  */
 
-__BEGIN_DECLS
+#ifdef __cplusplus
+extern "C" {
+#endif
 
 struct ar_hdr
   {
@@ -43,6 +43,8 @@ struct ar_hdr
     char ar_fmag[2];		/* Always contains ARFMAG.  */
   };
 
-__END_DECLS
+#ifdef __cplusplus
+}
+#endif
 
 #endif /* ar.h */