diff options
author | ryoon <ryoon> | 2014-05-16 12:29:04 +0000 |
---|---|---|
committer | ryoon <ryoon> | 2014-05-16 12:29:04 +0000 |
commit | c678a5ef2e617a181cb0ef2e3dd332293cd1e719 (patch) | |
tree | a2afa3fa09da9de21ed1fa1a594427b02098d810 | |
parent | 8c1c4979af9ea230c7f191f60be3c79acf619864 (diff) | |
download | pkgsrc-c678a5ef2e617a181cb0ef2e3dd332293cd1e719.tar.gz |
Fix build under OpenBSD 5.5
-rw-r--r-- | graphics/graphviz/distinfo | 3 | ||||
-rw-r--r-- | graphics/graphviz/patches/patch-cmd_lefty_os_unix_io.c | 18 |
2 files changed, 20 insertions, 1 deletions
diff --git a/graphics/graphviz/distinfo b/graphics/graphviz/distinfo index 04528463dc3..8d78f0f8e8a 100644 --- a/graphics/graphviz/distinfo +++ b/graphics/graphviz/distinfo @@ -1,8 +1,9 @@ -$NetBSD: distinfo,v 1.51 2014/05/06 09:33:13 wiz Exp $ +$NetBSD: distinfo,v 1.52 2014/05/16 12:29:04 ryoon Exp $ SHA1 (graphviz-2.38.0.tar.gz) = 053c771278909160916ca5464a0a98ebf034c6ef RMD160 (graphviz-2.38.0.tar.gz) = a80c2fa6b9955444b2103a99167d7020b23e4c4e Size (graphviz-2.38.0.tar.gz) = 25848858 bytes +SHA1 (patch-cmd_lefty_os_unix_io.c) = 48f91c79b97928b54ae24af59a9fea173f34dfe5 SHA1 (patch-config_config__perl.pl) = 85d535282a819c1055386244f7b520387d0ddbb1 SHA1 (patch-configure) = f772bedfac63c3b473ebae1621b72982a13fe5a3 SHA1 (patch-configure.ac) = ec844ae85b6be9cf095ec800df6983b061d62b5d diff --git a/graphics/graphviz/patches/patch-cmd_lefty_os_unix_io.c b/graphics/graphviz/patches/patch-cmd_lefty_os_unix_io.c new file mode 100644 index 00000000000..fcfe1de7187 --- /dev/null +++ b/graphics/graphviz/patches/patch-cmd_lefty_os_unix_io.c @@ -0,0 +1,18 @@ +$NetBSD: patch-cmd_lefty_os_unix_io.c,v 1.1 2014/05/16 12:29:04 ryoon Exp $ + +* Fix build under OpenBSD 5.5 + +--- cmd/lefty/os/unix/io.c.orig 2014-04-13 20:40:25.000000000 +0000 ++++ cmd/lefty/os/unix/io.c +@@ -313,7 +313,11 @@ static FILE *serverconnect (char *name) + + hints.ai_family = AF_UNSPEC; /* Allow IPv4 or IPv6 */ + hints.ai_socktype = SOCK_STREAM;/* Stream socket */ ++#if defined(AI_ADDRCONFIG) + hints.ai_flags = AI_ADDRCONFIG | AI_NUMERICSERV; ++#else ++ hints.ai_flags = AI_NUMERICSERV; ++#endif + hints.ai_protocol = 0; /* Any protocol */ + hints.ai_canonname = NULL; + hints.ai_addr = NULL; |