Remove non-POSIX sys/cdefs.h & co dependency.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7548 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Houdoin
2004-05-13 00:56:00 +00:00
parent 399761740c
commit fe09bb12a1
+29 -27
View File
@@ -55,21 +55,16 @@
/* /*
* @(#)inet.h 8.1 (Berkeley) 6/2/93 * @(#)inet.h 8.1 (Berkeley) 6/2/93
* $Id: inet.h,v 1.5 2004/04/15 15:54:34 wkornew Exp $ * $Id: inet.h,v 1.6 2004/05/13 00:56:00 phoudoin Exp $
*/ */
#ifndef _INET_H_ #ifndef _INET_H_
#define _INET_H_ #define _INET_H_
/* External definitions for functions in inet(3) */ #include <sys/types.h>
#include <netinet/in.h>
#include <sys/param.h> /* External definitions for functions in inet(3) */
#if (!defined(BSD)) || (BSD < 199306)
# include <sys/bitypes.h>
#else
# include <sys/types.h>
#endif
#include <sys/cdefs.h>
/* R5 libnet.so does not have "__" prefix. */ /* R5 libnet.so does not have "__" prefix. */
#ifndef BUILDING_R5_LIBNET #ifndef BUILDING_R5_LIBNET
@@ -91,23 +86,30 @@
#define inet_nsap_ntoa __inet_nsap_ntoa #define inet_nsap_ntoa __inet_nsap_ntoa
#endif #endif
__BEGIN_DECLS #ifdef __cplusplus
unsigned long inet_addr __P((const char *)); extern "C" {
int inet_aton __P((const char *, struct in_addr *)); #endif
unsigned long inet_lnaof __P((struct in_addr));
struct in_addr inet_makeaddr __P((u_long , u_long)); unsigned long inet_addr(const char *);
char * inet_neta __P((u_long, char *, size_t)); int inet_aton(const char *, struct in_addr *);
unsigned long inet_netof __P((struct in_addr)); unsigned long inet_lnaof(struct in_addr);
unsigned long inet_network __P((const char *)); struct in_addr inet_makeaddr(u_long , u_long);
char *inet_net_ntop __P((int, const void *, int, char *, size_t)); char * inet_neta(u_long, char *, size_t);
int inet_net_pton __P((int, const char *, void *, size_t)); unsigned long inet_netof(struct in_addr);
char *inet_cidr_ntop __P((int, const void *, int, char *, size_t)); unsigned long inet_network(const char *);
int inet_cidr_pton __P((int, const char *, void *, int *)); char *inet_net_ntop(int, const void *, int, char *, size_t);
/*const*/ char *inet_ntoa __P((struct in_addr)); int inet_net_pton(int, const char *, void *, size_t);
int inet_pton __P((int, const char *, void *)); char *inet_cidr_ntop(int, const void *, int, char *, size_t);
const char *inet_ntop __P((int, const void *, char *, size_t)); int inet_cidr_pton(int, const char *, void *, int *);
u_int inet_nsap_addr __P((const char *, u_char *, int)); /*const*/ char *inet_ntoa(struct in_addr);
char *inet_nsap_ntoa __P((int, const u_char *, char *)); int inet_pton(int, const char *, void *);
__END_DECLS const char *inet_ntop(int, const void *, char *, size_t);
u_int inet_nsap_addr(const char *, u_char *, int);
char *inet_nsap_ntoa(int, const u_char *, char *);
#ifdef __cplusplus
}
#endif
#endif /* !_INET_H_ */ #endif /* !_INET_H_ */