aboutsummaryrefslogtreecommitdiffstats
path: root/main/netcat-openbsd/fix-cdefs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/netcat-openbsd/fix-cdefs.patch')
-rw-r--r--main/netcat-openbsd/fix-cdefs.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/main/netcat-openbsd/fix-cdefs.patch b/main/netcat-openbsd/fix-cdefs.patch
new file mode 100644
index 0000000000..e4c341d146
--- /dev/null
+++ b/main/netcat-openbsd/fix-cdefs.patch
@@ -0,0 +1,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