summaryrefslogtreecommitdiffstats
path: root/main/netcat-openbsd/fix-cdefs.patch
blob: e4c341d1467272bae6566e1c6ba861b277c4077c (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
Only in netcat-openbsd-1.89.orig: atomicio.o
Only in netcat-openbsd-1.89.orig: openbsd-compat/base64.o
--- netcat-openbsd-1.89.orig.orig/openbsd-compat/readpassphrase.h
+++ netcat-openbsd-1.89.orig/openbsd-compat/readpassphrase.h
@@ -31,10 +31,14 @@
 #define RPP_SEVENBIT    0x10		/* Strip the high bit from input. */
 #define RPP_STDIN       0x20		/* Read from stdin, not /dev/tty */
 
-#include <sys/cdefs.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
 
-__BEGIN_DECLS
 char * readpassphrase(const char *, char *, size_t, int);
-__END_DECLS
+
+#ifdef __cplusplus
+};
+#endif
 
 #endif /* !_READPASSPHRASE_H_ */
Only in netcat-openbsd-1.89.orig: openbsd-compat/readpassphrase.o
Only in netcat-openbsd-1.89.orig: socks.o