blob: 0e07c232299ab31aea6195cd2db44da1ca530bb4 [file] [log] [blame]
/*
* netinet/in.h
*/
#ifndef _NETINET_IN_H
#define _NETINET_IN_H
/* added this include by Mats Petersson */
#include <linux/socket.h>
#include <stdint.h>
#include <endian.h> /* Must be included *before* <linux/in.h> */
#include <linux/in.h>
#ifndef htons
# define htons(x) __cpu_to_be16(x)
#endif
#ifndef ntohs
# define ntohs(x) __be16_to_cpu(x)
#endif
#ifndef htonl
# define htonl(x) __cpu_to_be32(x)
#endif
#ifndef ntohl
# define ntohl(x) __be32_to_cpu(x)
#endif
#endif /* _NETINET_IN_H */