aboutsummaryrefslogtreecommitdiffstats
path: root/main/netcat-openbsd/fix-cdefs.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-10-09 12:16:41 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-10-09 12:16:41 +0000
commitaa1a14671d24b167ecccbf5554ed3e0842fd5e84 (patch)
tree2dae59461b3f9daad7c616ceb753a8c23b4494a1 /main/netcat-openbsd/fix-cdefs.patch
parent42052fa4858f3a320230c65f0527f1aa901a260a (diff)
downloadaports-aa1a14671d24b167ecccbf5554ed3e0842fd5e84.tar.bz2
aports-aa1a14671d24b167ecccbf5554ed3e0842fd5e84.tar.xz
main/netcat-openbsd: fix musl build
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