summaryrefslogtreecommitdiff
path: root/security/pgp6/files/patch-at
blob: 7d549aa4fd728cba54e1ae05b515018301c4f806 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- libs/pgpcdk/priv/networklib/pgpsockets/common/pgpSockets.c.orig	1999-08-04 11:36:04.000000000 -0700
+++ libs/pgpcdk/priv/networklib/pgpsockets/common/pgpSockets.c	2008-08-31 00:40:02.000000000 -0700
@@ -39,7 +39,7 @@ ________________________________________
 # define closesocket(x) close((x))
 # define ioctlsocket(a,b,c) ioctl((a),(b),(c))
 typedef int		SOCKET;
-#if PGP_UNIX_LINUX || PGP_UNIX_HPUX || PGP_UNIX_AIX
+#if PGP_UNIX_LINUX || PGP_UNIX_HPUX || PGP_UNIX_AIX || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
 int gethostname (char * name, size_t namelen);
 #else
 int gethostname (char * name, int namelen);