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