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