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