diff options
author | joerg <joerg@pkgsrc.org> | 2016-04-30 20:18:38 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2016-04-30 20:18:38 +0000 |
commit | e42e70afa767aa8bf96cb0d9e4406e7cd799a2cd (patch) | |
tree | eb60083a326ce37565045bf44265e8e19a4e7f40 /net/libtelnet | |
parent | 8396cae3080e91d6b9488466f078f6fa77ed8194 (diff) | |
download | pkgsrc-e42e70afa767aa8bf96cb0d9e4406e7cd799a2cd.tar.gz |
Fix portability issues due to overstrict namespace macros.
Diffstat (limited to 'net/libtelnet')
-rw-r--r-- | net/libtelnet/distinfo | 6 | ||||
-rw-r--r-- | net/libtelnet/patches/patch-util_telnet-chatd.c | 14 | ||||
-rw-r--r-- | net/libtelnet/patches/patch-util_telnet-client.c | 16 | ||||
-rw-r--r-- | net/libtelnet/patches/patch-util_telnet-proxy.c | 14 |
4 files changed, 46 insertions, 4 deletions
diff --git a/net/libtelnet/distinfo b/net/libtelnet/distinfo index 10320f22b9f..88ab0d34cbb 100644 --- a/net/libtelnet/distinfo +++ b/net/libtelnet/distinfo @@ -1,8 +1,10 @@ -$NetBSD: distinfo,v 1.1 2016/04/11 11:32:22 fhajny Exp $ +$NetBSD: distinfo,v 1.2 2016/04/30 20:18:38 joerg Exp $ SHA1 (libtelnet-0.21.tar.gz) = 2101bb5689b77ae8562b07b8364e208a62d4e6f3 RMD160 (libtelnet-0.21.tar.gz) = 81fe34610211ab5c794aea4c5e9268d275b6633a SHA512 (libtelnet-0.21.tar.gz) = 69dc0ac4741c81d932136cd736b48a11a05cd2738da6255d6050844f50a2f16c575c747e5c758bbdbc6b1e3309ce02e4979f0002b40fed32a3711aa8f22e04f1 Size (libtelnet-0.21.tar.gz) = 240486 bytes SHA1 (patch-configure.ac) = 9b29ea8995eefbfbe786c9217089577d9de9850d -SHA1 (patch-util_telnet-client.c) = 0486e3b6f6d900153f449ccc24024e3915761e54 +SHA1 (patch-util_telnet-chatd.c) = bfbea72913ebf543fd2220ac6da06cfabaad59f1 +SHA1 (patch-util_telnet-client.c) = f8187bb07338d427fc12fbdec2b2c3c56196dc80 +SHA1 (patch-util_telnet-proxy.c) = 7e455cec62c522c7abb55afc2a49aa064635a76c diff --git a/net/libtelnet/patches/patch-util_telnet-chatd.c b/net/libtelnet/patches/patch-util_telnet-chatd.c new file mode 100644 index 00000000000..9d0af3ddc53 --- /dev/null +++ b/net/libtelnet/patches/patch-util_telnet-chatd.c @@ -0,0 +1,14 @@ +$NetBSD: patch-util_telnet-chatd.c,v 1.1 2016/04/30 20:18:38 joerg Exp $ + +Uses strdup. + +--- util/telnet-chatd.c.orig 2016-04-27 08:59:27.691493917 +0000 ++++ util/telnet-chatd.c +@@ -10,6 +10,7 @@ + */ + + #if !defined(_WIN32) ++# define _XOPEN_SOURCE 520 + # if !defined(_POSIX_SOURCE) + # define _POSIX_SOURCE + # endif diff --git a/net/libtelnet/patches/patch-util_telnet-client.c b/net/libtelnet/patches/patch-util_telnet-client.c index fcac1b6b137..987ce2f6c8e 100644 --- a/net/libtelnet/patches/patch-util_telnet-client.c +++ b/net/libtelnet/patches/patch-util_telnet-client.c @@ -1,10 +1,22 @@ -$NetBSD: patch-util_telnet-client.c,v 1.1 2016/04/11 11:32:22 fhajny Exp $ +$NetBSD: patch-util_telnet-client.c,v 1.2 2016/04/30 20:18:38 joerg Exp $ Provide workaround for a non-POSIX cfmakeraw call. +Uses getaddrinfo. --- util/telnet-client.c.orig 2012-03-18 21:07:49.000000000 +0000 +++ util/telnet-client.c -@@ -199,7 +199,15 @@ int main(int argc, char **argv) { +@@ -9,6 +9,10 @@ + * all present and future rights to this code under copyright law. + */ + ++#ifdef __NetBSD__ ++#define _NETBSD_SOURCE ++#endif ++#define _XOPEN_SOURCE 520 + #if !defined(_POSIX_SOURCE) + # define _POSIX_SOURCE + #endif +@@ -199,7 +203,15 @@ int main(int argc, char **argv) { tcgetattr(STDOUT_FILENO, &orig_tios); atexit(_cleanup); tios = orig_tios; diff --git a/net/libtelnet/patches/patch-util_telnet-proxy.c b/net/libtelnet/patches/patch-util_telnet-proxy.c new file mode 100644 index 00000000000..52ff3d6e02f --- /dev/null +++ b/net/libtelnet/patches/patch-util_telnet-proxy.c @@ -0,0 +1,14 @@ +$NetBSD: patch-util_telnet-proxy.c,v 1.1 2016/04/30 20:18:38 joerg Exp $ + +Uses getaddrinfo and friends. + +--- util/telnet-proxy.c.orig 2016-04-27 08:57:41.984443954 +0000 ++++ util/telnet-proxy.c +@@ -10,6 +10,7 @@ + */ + + #if !defined(_WIN32) ++# define _XOPEN_SOURCE 520 + # if !defined(_POSIX_SOURCE) + # define _POSIX_SOURCE + # endif |