#ifndef port_before_h
#define port_before_h
#include <config.h>
#ifdef __HAIKU__
# include <sys/sockio.h>
# define ETOOMANYREFS EBADF
# define inet_addr __inet_addr
# define inet_aton __inet_aton
# define inet_neta __inet_neta
# define inet_net_ntop __inet_net_ntop
# define inet_net_pton __inet_net_pton
# define inet_cidr_ntop __inet_cidr_ntop
# define inet_cidr_pton __inet_cidr_pton
# define inet_ntop __inet_ntop
# define inet_nsap_addr __inet_nsap_addr
# define inet_nsap_ntoa __inet_nsap_ntoa
#define __weak_alias(alias, sym) __asm(".weak " #alias "\n" #alias " = " #sym);
struct _ns_flagdata { int mask, shift; };
extern struct _ns_flagdata _ns_flagdata[];
#endif
#define ISC_SOCKLEN_T socklen_t
#ifdef __GNUC__
#define ISC_FORMAT_PRINTF(fmt, args) \
__attribute__((__format__(__printf__, fmt, args)))
#else
#define ISC_FORMAT_PRINTF(fmt, args)
#endif
#define DE_CONST(konst, var) \
do { \
union { const void *k; void *v; } _u; \
_u.k = konst; \
var = _u.v; \
} while (0)
#define UNUSED(x) (x) = (x)
#endif