2N/A/*
2N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A#ifndef _SUNW_PORT_BEFORE_H
2N/A#define _SUNW_PORT_BEFORE_H
2N/A
2N/A#ifdef SUNW_OPTIONS
2N/A#include <conf/sunoptions.h>
2N/A#endif
2N/A
2N/A/* version-specific defines */
2N/A#include <os_version.h>
2N/A#if (OS_MAJOR == 5 && OS_MINOR < 6)
2N/A#ifndef SOLARIS_BITTYPES
2N/A#define NEED_SOLARIS_BITTYPES 1
2N/A#endif
2N/A#endif
2N/A
2N/A#if (OS_MAJOR == 5 && OS_MINOR < 5)
2N/A#undef HAS_PTHREADS
2N/A#else
2N/A#define HAS_PTHREADS
2N/A#endif
2N/A
2N/A#if defined(HAS_PTHREADS) && defined(_REENTRANT)
2N/A#define DO_PTHREADS
2N/A#endif
2N/A
2N/A/*
2N/A * need these if we are using public versions of nameser.h, resolv.h, and
2N/A * inet.h
2N/A */
2N/A#include <sys/param.h>
2N/A#if (!defined(BSD)) || (BSD < 199306)
2N/A#include <sys/bitypes.h>
2N/A#else
2N/A#include <sys/types.h>
2N/A#endif
2N/A#include <sys/cdefs.h>
2N/A
2N/A#endif /* _SUNW_PORT_BEFORE_H */