diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-10-09 12:16:41 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2013-10-09 12:16:41 +0000 |
commit | aa1a14671d24b167ecccbf5554ed3e0842fd5e84 (patch) | |
tree | 2dae59461b3f9daad7c616ceb753a8c23b4494a1 /main/netcat-openbsd/fix-cdefs.patch | |
parent | 42052fa4858f3a320230c65f0527f1aa901a260a (diff) | |
download | aports-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.patch | 24 |
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 |