small patch for lib/ko/ports.c in arla 0.5
Derrick J Brashear
shadow at dementia.org
Thu Apr 16 04:35:01 CEST 1998
Under SparcLinux (2.0) when using libc5 ntohs is defined in
asm/byteorder.h which is pulled in by netinet/in.h... netdb.h won't
include netinet/in.h unless:
#if defined(_POSIX_THREAD_SAFE_FUNCTIONS) || defined(_REENTRANT)
-D
--
*** arla-0.5/lib/ko/ports.c.orig Wed Apr 15 17:48:39 1998
--- arla-0.5/lib/ko/ports.c Wed Apr 15 22:35:49 1998
***************
*** 47,52 ****
--- 47,55 ----
#ifdef HAVE_NETDB_H
#include <netdb.h>
#endif
+ #ifdef HAVE_NETINET_IN_H
+ #include <netinet/in.h>
+ #endif
RCSID("$Id: ports.c,v 1.3 1998/04/03 03:36:14 assar Exp $") ;
--
More information about the Arla-drinkers
mailing list