Browse code

Fix BeOS link error

git-svn: trunk@2748

Nigel Horne authored on 2007/02/14 04:49:06
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Tue Feb 13 19:48:22 GMT 2007 (njh)
2
+----------------------------------
3
+  * libclamav/mbox.c:	Fix BeOS link error
4
+
1 5
 Tue Feb 13 19:24:49 GMT 2007 (njh)
2 6
 ----------------------------------
3 7
   * libclamav/phishcheck.c:	Fix warning message, patch from Edvin
... ...
@@ -16,7 +16,7 @@
16 16
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 17
  *  MA 02110-1301, USA.
18 18
  */
19
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.379 2007/02/13 19:04:07 njh Exp $";
19
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.380 2007/02/13 19:47:37 njh Exp $";
20 20
 
21 21
 #ifdef	_MSC_VER
22 22
 #include <winsock.h>	/* only needed in CL_EXPERIMENTAL */
... ...
@@ -4366,7 +4366,7 @@ getURL(struct arg *arg)
4366 4366
 			default_port = (in_port_t)ntohs(servent->s_port);
4367 4367
 		else
4368 4368
 			default_port = 80;
4369
-#ifndef	C_WINDOWS
4369
+#if	!defined(C_WINDOWS) && !defined(C_BEOS)
4370 4370
 		endservent();
4371 4371
 #endif
4372 4372
 	}
... ...
@@ -4609,6 +4609,11 @@ my_r_gethostbyname(const char *hostname, struct hostent *hp, char *buf, size_t l
4609 4609
 		return ret;
4610 4610
 #elif	defined(HAVE_GETHOSTBYNAME_R_5)
4611 4611
 	/* e.g. BSD, Solaris, Cygwin */
4612
+	/*
4613
+	 * Configure doesn't work on BeOS. We need -lnet to link, but configure
4614
+	 * doesn't add it, so you need to do something like
4615
+	 *	LIBS=-lnet ./configure --enable-cache --disable-clamav
4616
+	 */
4612 4617
 	int ret = -1;
4613 4618
 
4614 4619
 	if((hostname == NULL) || (hp == NULL))