Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-src
Path: blob/main/lib/libc/include/isc/platform.h
39530 views
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
21
/*! \file */
22
23
#ifndef ISC_PLATFORM_H
24
#define ISC_PLATFORM_H
25
26
/*
27
* Define if the OS does not define struct timespec.
28
*/
29
#undef ISC_PLATFORM_NEEDTIMESPEC
30
#ifdef ISC_PLATFORM_NEEDTIMESPEC
31
#include <time.h> /* For time_t */
32
struct timespec {
33
time_t tv_sec; /* seconds */
34
long tv_nsec; /* nanoseconds */
35
};
36
#endif
37
38
#endif
39
40