From 14d2005d86665be785e8625a97eb47648b383278 Mon Sep 17 00:00:00 2001 From: Mikael Djurfeldt Date: Sun, 12 Mar 2000 01:47:53 +0000 Subject: [PATCH] * coop-defs.h (struct timespec): Conditionally defined. --- libguile/coop-defs.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libguile/coop-defs.h b/libguile/coop-defs.h index ce0e947f1..a1c490eb8 100644 --- a/libguile/coop-defs.h +++ b/libguile/coop-defs.h @@ -3,7 +3,7 @@ #ifndef COOP_DEFSH #define COOP_DEFSH -/* Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc. +/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -170,6 +170,16 @@ typedef int coop_cattr; typedef coop_c scm_cond_t; +#ifndef HAVE_STRUCT_TIMESPEC +/* POSIX.4 structure for a time value. This is like a `struct timeval' but + has nanoseconds instead of microseconds. */ +struct timespec +{ + long int tv_sec; /* Seconds. */ + long int tv_nsec; /* Nanoseconds. */ +}; +#endif + extern int coop_condition_variable_init (coop_c*); extern int coop_new_condition_variable_init (coop_c*, coop_cattr*); extern int coop_condition_variable_wait_mutex (coop_c*, coop_m*);