freebsd-ports/devel/libphish/files/patch-src-phish_util_net.c
Aaron Dalton b50c4a004f Add libphish 0.1.0, a cross-platform library to interact with the Open
Phishing Database.

PR:		ports/95922
Submitted by:	Rashid N. Achilov <shelton@granch.ru>
Approved by:	tobez
2006-06-05 21:30:34 +00:00

20 lines
422 B
C

--- src/phish_util_net.c.orig Mon Mar 20 09:54:25 2006
+++ src/phish_util_net.c Mon Jun 5 13:40:14 2006
@@ -30,6 +30,8 @@
+#include <sys/types.h>
+#include <sys/socket.h>
#include <netdb.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif
#include "phish.h"
@@ -72,7 +74,7 @@
h->ent = NULL;
h->buf = NULL;
-#ifdef WIN32
+#if defined(WIN32) || defined(FreeBSD)
h->ent = gethostbyname(name);