2N/A/*
2N/A * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
2N/A * Use is subject to license terms.
2N/A */
2N/A
2N/A
2N/A/*
2N/A * Copyright (C) 2008 Internet Systems Consortium, Inc. ("ISC")
2N/A *
2N/A * Permission to use, copy, modify, and/or distribute this software for any
2N/A * purpose with or without fee is hereby granted, provided that the above
2N/A * copyright notice and this permission notice appear in all copies.
2N/A *
2N/A * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
2N/A * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2N/A * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
2N/A * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2N/A * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
2N/A * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2N/A * PERFORMANCE OF THIS SOFTWARE.
2N/A */
2N/A
2N/A/* $Id: platform.h.in,v 1.3 2008/01/23 02:15:56 tbox Exp $ */
2N/A
2N/A/*! \file */
2N/A
2N/A#ifndef ISC_PLATFORM_H
2N/A#define ISC_PLATFORM_H
2N/A
2N/A/*
2N/A * Define if the OS does not define struct timespec.
2N/A */
2N/A#undef ISC_PLATFORM_NEEDTIMESPEC
2N/A#ifdef ISC_PLATFORM_NEEDTIMESPEC
2N/A#include <time.h> /* For time_t */
2N/Astruct timespec {
2N/A time_t tv_sec; /* seconds */
2N/A long tv_nsec; /* nanoseconds */
2N/A};
2N/A#endif
2N/A
2N/A#endif