From: Wouter Wijngaards Date: Fri, 29 Jan 2010 15:20:55 +0000 (+0000) Subject: portable. X-Git-Tag: release-1.4.2~45 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6d62769b031d94c284c531eb8382b710e3da6a27;p=thirdparty%2Funbound.git portable. git-svn-id: file:///svn/unbound/trunk@1966 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testcode/streamtcp.c b/testcode/streamtcp.c index f79806fee..8a77f0858 100644 --- a/testcode/streamtcp.c +++ b/testcode/streamtcp.c @@ -73,6 +73,9 @@ open_svr(const char* svr, int udp) printf("fatal: bad server specs '%s'\n", svr); exit(1); } +#ifndef PF_INET6 +#define PF_INET6 10 +#endif fd = socket(addr_is_ip6(&addr, addrlen)?PF_INET6:PF_INET, udp?SOCK_DGRAM:SOCK_STREAM, 0); if(fd == -1) {