1 /*
   2  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
   3  * Use is subject to license terms.
   4  */
   5 
   6 #ifndef _SUNW_PORT_BEFORE_H
   7 #define _SUNW_PORT_BEFORE_H
   8 
   9 #ifdef SUNW_OPTIONS
  10 #include <conf/sunoptions.h>
  11 #endif
  12 
  13 /* version-specific defines */
  14 #include <os_version.h>
  15 #if (OS_MAJOR == 5 && OS_MINOR < 6)
  16 #ifndef SOLARIS_BITTYPES
  17 #define NEED_SOLARIS_BITTYPES 1
  18 #endif
  19 #endif
  20 
  21 #if (OS_MAJOR == 5 && OS_MINOR < 5)
  22 #undef HAS_PTHREADS
  23 #else
  24 #define HAS_PTHREADS
  25 #endif
  26 
  27 
  28 /*
  29  * need these if we are using public versions of nameser.h, resolv.h, and
  30  * inet.h
  31  */
  32 #include <sys/param.h>
  33 #if (!defined(BSD)) || (BSD < 199306)
  34 #include <sys/bitypes.h>
  35 #else
  36 #include <sys/types.h>
  37 #endif
  38 #include <sys/cdefs.h>
  39 
  40 #endif  /* _SUNW_PORT_BEFORE_H */