xref: /netbsd-src/external/bsd/libbind/dist/include/isc/platform.h.in (revision 5bbd2a12505d72a8177929a37b5cee489d0a1cfd)
1*b5677b36Schristos/*
2*b5677b36Schristos * Copyright (C) 2008  Internet Systems Consortium, Inc. ("ISC")
3*b5677b36Schristos *
4*b5677b36Schristos * Permission to use, copy, modify, and/or distribute this software for any
5*b5677b36Schristos * purpose with or without fee is hereby granted, provided that the above
6*b5677b36Schristos * copyright notice and this permission notice appear in all copies.
7*b5677b36Schristos *
8*b5677b36Schristos * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
9*b5677b36Schristos * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10*b5677b36Schristos * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
11*b5677b36Schristos * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12*b5677b36Schristos * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
13*b5677b36Schristos * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14*b5677b36Schristos * PERFORMANCE OF THIS SOFTWARE.
15*b5677b36Schristos */
16*b5677b36Schristos
17*b5677b36Schristos/* Id: platform.h.in,v 1.3 2008/01/23 02:15:56 tbox Exp  */
18*b5677b36Schristos
19*b5677b36Schristos/*! \file */
20*b5677b36Schristos
21*b5677b36Schristos#ifndef ISC_PLATFORM_H
22*b5677b36Schristos#define ISC_PLATFORM_H
23*b5677b36Schristos
24*b5677b36Schristos/*
25*b5677b36Schristos * Define if the OS does not define struct timespec.
26*b5677b36Schristos */
27*b5677b36Schristos@ISC_PLATFORM_NEEDTIMESPEC@
28*b5677b36Schristos#ifdef ISC_PLATFORM_NEEDTIMESPEC
29*b5677b36Schristos#include <time.h>               /* For time_t */
30*b5677b36Schristosstruct timespec {
31*b5677b36Schristos	time_t  tv_sec;         /* seconds */
32*b5677b36Schristos	long    tv_nsec;        /* nanoseconds */
33*b5677b36Schristos};
34*b5677b36Schristos#endif
35*b5677b36Schristos
36*b5677b36Schristos#endif
37