1186090Sume/* 2186090Sume * Copyright (C) 2008 Internet Systems Consortium, Inc. ("ISC") 3186090Sume * 4186090Sume * Permission to use, copy, modify, and/or distribute this software for any 5186090Sume * purpose with or without fee is hereby granted, provided that the above 6186090Sume * copyright notice and this permission notice appear in all copies. 7186090Sume * 8186090Sume * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH 9186090Sume * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 10186090Sume * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 11186090Sume * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 12186090Sume * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 13186090Sume * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 14186090Sume * PERFORMANCE OF THIS SOFTWARE. 15186090Sume */ 16186090Sume 17186090Sume/* $Id: platform.h.in,v 1.2.6.2 2008/01/23 02:15:02 tbox Exp $ */ 18186090Sume/* $FreeBSD: releng/10.2/lib/libc/include/isc/platform.h 186090 2008-12-14 19:39:53Z ume $ */ 19186090Sume 20186090Sume/*! \file */ 21186090Sume 22186090Sume#ifndef ISC_PLATFORM_H 23186090Sume#define ISC_PLATFORM_H 24186090Sume 25186090Sume/* 26186090Sume * Define if the OS does not define struct timespec. 27186090Sume */ 28186090Sume#undef ISC_PLATFORM_NEEDTIMESPEC 29186090Sume#ifdef ISC_PLATFORM_NEEDTIMESPEC 30186090Sume#include <time.h> /* For time_t */ 31186090Sumestruct timespec { 32186090Sume time_t tv_sec; /* seconds */ 33186090Sume long tv_nsec; /* nanoseconds */ 34186090Sume}; 35186090Sume#endif 36186090Sume 37186090Sume#endif 38