--- src/include/arpa/inet.h 2003/11/14 01:01:47 1.3 +++ src/include/arpa/inet.h 2004/08/23 16:03:44 1.4 @@ -1,4 +1,6 @@ /* + * Copyright (c) 2004 The DragonFly Project. All rights reserved. + * * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. * @@ -82,6 +84,19 @@ struct in_addr; #define inet_nsap_addr __inet_nsap_addr #define inet_nsap_ntoa __inet_nsap_ntoa +#ifndef htonl +#define htonl(x) __htonl(x) +#endif +#ifndef htons +#define htons(x) __htons(x) +#endif +#ifndef ntohl +#define ntohl(x) __ntohl(x) +#endif +#ifndef ntohs +#define ntohs(x) __ntohs(x) +#endif + __BEGIN_DECLS int ascii2addr (int, const char *, void *); char *addr2ascii (int, const void *, int, char *);