/*
 * $Id: time.h,v 1.4 2000/09/22 22:05:18 k-abe Exp $
 *
 * This file is part of PTL, Portable Thread Library.
 *
 * Copyright (C) 1997-2000 Kota Abe
 *
 */

#ifndef __PTHREAD_SYS_TIME_H__
#define __PTHREAD_SYS_TIME_H__

#include <sys/pthread-init.h>

/* ---------------------------------------------------------------- */
#ifdef __PTL_RENAMED__
#define __PTL_ALREADY_RENAMED_SYS_TIME_H
#else
#include <sys/pthread-before.h>
#endif

#ifdef __GNUC__
#include <00root-gcc/sys/time.h>
#else
#include <00root-system/sys/time.h>
#endif

#include <sys/pthread-after.h>
/* ---------------------------------------------------------------- */

#include <sys/pthread-cdecl.h>

#if !defined(HAVE_TIMESPEC) && !defined(_PTL_TIMESPEC)
#define _PTL_TIMESPEC
struct timespec {
    time_t      tv_sec;			/* Seconds */
    long        tv_nsec;		/* Nanoseconds */
};
#endif

/* ---------------------------------------------------------------- */
#ifdef __PTL_ALREADY_RENAMED_SYS_TIME_H
#include <sys/pthread-before.h>
#undef __PTL_ALREADY_RENAMED_SYS_TIME_H
#else
#include <sys/pthread-after.h>
#endif
/* ---------------------------------------------------------------- */

#endif /* __PTHREAD_SYS_TIME_H__ */
