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