diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-07-18 09:04:43 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-07-18 09:04:43 +0000 |
commit | 61a0ffa28dde2898ca6dcfd71067e434729e36f2 (patch) | |
tree | 2cce9c9e8f6ddae5b356108021e42098fcdbddd2 /www/curl/patches | |
parent | 96bac9ee8b4c7ac3d9a99075f8b8a534fec3e889 (diff) | |
download | pkgsrc-61a0ffa28dde2898ca6dcfd71067e434729e36f2.tar.gz |
Fix build under SCO OpenServer 5.0.7/3.2.
Diffstat (limited to 'www/curl/patches')
-rw-r--r-- | www/curl/patches/patch-lib_url.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/www/curl/patches/patch-lib_url.c b/www/curl/patches/patch-lib_url.c new file mode 100644 index 00000000000..2fa1e000577 --- /dev/null +++ b/www/curl/patches/patch-lib_url.c @@ -0,0 +1,15 @@ +$NetBSD: patch-lib_url.c,v 1.1 2014/07/18 09:04:43 ryoon Exp $ + +* SCO OpenServer 5.0.7/3.2 has no if_nametoindex(3). + +--- lib/url.c.orig 2014-05-20 08:34:01.000000000 +0000 ++++ lib/url.c +@@ -4004,7 +4004,7 @@ static CURLcode parseurlandfillconn(stru + } + else { + /* Zone identifier is not numeric */ +-#if defined(HAVE_NET_IF_H) && defined(IFNAMSIZ) ++#if defined(HAVE_NET_IF_H) && defined(IFNAMSIZ) && !defined(_SCO_DS) + char ifname[IFNAMSIZ + 2]; + char *square_bracket; + unsigned int scopeidx = 0; |