View | Details | Raw Unified | Return to bug 168336
Collapse All | Expand All

(-)Makefile (+1 lines)
Lines 7-12 Link Here
7
7
8
PORTNAME=	siege
8
PORTNAME=	siege
9
PORTVERSION=	2.70
9
PORTVERSION=	2.70
10
PORTREVISION=	1
10
CATEGORIES=	benchmarks
11
CATEGORIES=	benchmarks
11
MASTER_SITES=	ftp://sid.joedog.org/pub/siege/
12
MASTER_SITES=	ftp://sid.joedog.org/pub/siege/
12
13
(-)files/patch-src-sock.c (-7 / +15 lines)
Lines 1-12 Link Here
1
--- src/sock.c.ORIG	Sun Aug 29 13:39:37 2004
1
--- src/sock.c.orig	2010-05-17 15:57:59.000000000 +0200
2
+++ src/sock.c	Sun Aug 29 13:38:01 2004
2
+++ src/sock.c	2012-05-25 15:55:21.743780806 +0200
3
@@ -132,7 +132,7 @@
3
@@ -126,7 +126,7 @@
4
   if((gethostbyname_r( hn, &hent, hbf, sizeof(hbf), &hp, &herrno ) < 0)){
4
       hp = NULL;
5
     hp = NULL;
5
     }
6
   }
6
   }
7
-#elif defined(sun)
7
-#elif defined(sun)
8
+#elif defined(sun) || defined(__FreeBSD__)
8
+#elif defined(sun) || defined(__FreeBSD__)
9
 # ifdef HAVE_GETIPNODEBYNAME
9
 # ifdef HAVE_GETIPNODEBYNAME
10
   hp = getipnodebyname( hn, AF_INET, 0, &herrno );
10
   hp = getipnodebyname(hn, AF_INET, 0, &herrno);
11
 # else /* default use gethostbyname_r*/
11
 # else /* default use gethostbyname_r*/
12
12
@@ -154,7 +154,7 @@
13
   if(hp == NULL){ return -1; } 
14
   memset((void*) &cli, 0, sizeof(cli));
15
   memcpy(&cli.sin_addr, hp->h_addr, hp->h_length);
16
-#if defined(sun)
17
+#if defined(sun) || defined(__FreeBSD__)
18
 # ifdef  HAVE_FREEHOSTENT
19
   freehostent(hp);
20
 # endif/*HAVE_FREEHOSTENT*/ 

Return to bug 168336