2 * Copyright (C) 2005-2008 Internet Systems Consortium, Inc. ("ISC")
3 * Copyright (C) 2001 Internet Software Consortium.
5 * Permission to use, copy, modify, and/or distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
9 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 * PERFORMANCE OF THIS SOFTWARE.
18 /* Id: port_before.h.in,v 1.31 2008/02/28 05:36:10 marka Exp */
24 #ifdef NEED_SUN4PROTOS
28 struct group
; /* silence warning */
29 struct passwd
; /* silence warning */
30 struct timeval
; /* silence warning */
31 struct timezone
; /* silence warning */
33 #ifdef HAVE_SYS_TIMERS_H
34 #include <sys/timers.h>
38 #ifdef ISC_PLATFORM_NEEDTIMESPEC
39 #include <time.h> /* For time_t */
41 time_t tv_sec
; /* seconds */
42 long tv_nsec
; /* nanoseconds */
46 #define memmove(a,b,c) bcopy(b,a,c)
119 #if !defined(NGR_R_SET_ARGS) && defined(NGR_R_END_ARGS)
120 #define NGR_R_SET_ARGS NGR_R_END_ARGS
166 #define DE_CONST(konst, var) \
168 union { const void *k; void *v; } _u; \
173 #define UNUSED(x) (x) = (x)
179 #define ISC_FORMAT_PRINTF(fmt, args) \
180 __attribute__((__format__(__printf__, fmt, args)))
182 #define ISC_FORMAT_PRINTF(fmt, args)
185 /* Pull in host order macros when _XOPEN_SOURCE_EXTENDED is defined. */
186 #if defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
187 #include <sys/byteorder.h>