#ifndef _SUNW_PORT_AFTER_H
#define _SUNW_PORT_AFTER_H
#ifdef __cplusplus
extern "C" {
#endif
#define setnetgrent res_setnetgrent
#ifdef SETNETGRENT_ARGS
void setnetgrent(SETNETGRENT_ARGS);
#else
void setnetgrent(const char *netgroup);
#endif
#define endnetgrent res_endnetgrent
void endnetgrent(void);
#ifdef _RESOLV_H_
#include <port_resolv.h>
#endif
#ifdef _NETDB_H
#include <port_netdb.h>
#endif
#ifdef _ARPA_INET_H
#include <arpa/port_inet.h>
#endif
#ifdef _ARPA_NAMESER_H
#include <arpa/port_nameser.h>
#endif
#ifdef _ARPA_NAMESER_COMPAT_H
#endif
#include <os_version.h>
#if (OS_MAJOR == 5 && OS_MINOR < 6)
extern int gethostname(char *, size_t);
#endif
#if (OS_MAJOR == 5 && OS_MINOR < 5)
#define GET_HOST_ID_MISSING
#define NO_UNIX_REUSEADDR
#define USE_FIONBIO_IOCTL
#endif
#if (OS_MAJOR == 5 && OS_MINOR < 11)
#define NEED_STRSEP
extern char *strsep(char **, const char *);
#endif
#if (OS_MAJOR > 5 || (OS_MAJOR == 5 && OS_MINOR >= 5))
#include <sys/resource.h>
#define HAVE_GETRUSAGE
#define RLIMIT_TYPE rlim_t
#define RLIMIT_FILE_INFINITY
#endif
#ifndef ISC_FACILITY
#define ISC_FACILITY LOG_DAEMON
#endif
#if (OS_MAJOR > 5 || (OS_MAJOR == 5 && OS_MINOR >= 8))
#define USE_IFNAMELINKID
#endif
#undef ALIGN
#if (OS_MAJOR == 5 && OS_MINOR > 8)
#define ALIGN(x) (((uintptr_t)(x) + (sizeof (char *) - 1UL)) & \
~(sizeof (char *) - 1UL))
#else
#define ALIGN(x) (((unsigned long)(x) + (sizeof (char *) - 1UL)) & \
~(sizeof (char *) - 1UL))
#endif
#if (OS_MAJOR == 5 && OS_MINOR < 5)
#ifndef USE_FIONBIO_IOCTL
#define USE_FIONBIO_IOCTL 1
#endif
#endif
#ifdef __cplusplus
}
#endif
#endif