1 /* @(#)inet.h 1.3 13/07/08 Copyright 2009-2013 J. Schilling */ 2 /* 3 * Inet abstraction 4 * 5 * Copyright (c) 2009-2013 J. Schilling 6 */ 7 /* 8 * The contents of this file are subject to the terms of the 9 * Common Development and Distribution License, Version 1.0 only 10 * (the "License"). You may not use this file except in compliance 11 * with the License. 12 * 13 * See the file CDDL.Schily.txt in this distribution for details. 14 * A copy of the CDDL is also available via the Internet at 15 * http://www.opensource.org/licenses/cddl1.txt 16 * 17 * When distributing Covered Code, include this CDDL HEADER in each 18 * file and include the License file CDDL.Schily.txt from this distribution. 19 */ 20 21 #ifndef _SCHILY_INET_H 22 #define _SCHILY_INET_H 23 24 #ifndef _SCHILY_MCONFIG_H 25 #include <schily/mconfig.h> 26 #endif 27 28 #ifdef HAVE_ARPA_INET_H 29 #ifndef _INCL_ARPA_INET_H 30 #include <arpa/inet.h> 31 #define _INCL_ARPA_INET_H 32 #endif 33 #else /* !HAVE_ARPA_INET_H */ 34 35 /* 36 * BeOS does not have <arpa/inet.h> 37 * but inet_ntaoa() is in <netdb.h> 38 */ 39 #ifdef HAVE_NETDB_H 40 #ifndef _SCHILY_NETDB_H 41 #include <schily/netdb.h> 42 #endif 43 #endif /* HAVE_NETDB_H */ 44 45 #endif /* !HAVE_ARPA_INET_H */ 46 47 #endif /* _SCHILY_INET_H */ 48