00001 /* Provide a more complete sys/time.h. 00002 00003 Copyright (C) 2007 Free Software Foundation, Inc. 00004 00005 This program is free software; you can redistribute it and/or modify 00006 it under the terms of the GNU General Public License as published by 00007 the Free Software Foundation; either version 2, or (at your option) 00008 any later version. 00009 00010 This program is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 GNU General Public License for more details. 00014 00015 You should have received a copy of the GNU General Public License 00016 along with this program; if not, write to the Free Software Foundation, 00017 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 00018 00019 /* Written by Paul Eggert. */ 00020 00021 #ifndef _GL_SYS_TIME_H 00022 #define _GL_SYS_TIME_H 00023 00024 #if @HAVE_SYS_TIME_H@ 00025 # include @ABSOLUTE_SYS_TIME_H@ 00026 #else 00027 # include <time.h> 00028 #endif 00029 00030 #if ! @HAVE_STRUCT_TIMEVAL@ 00031 struct timeval 00032 { 00033 time_t tv_sec; 00034 long int tv_usec; 00035 }; 00036 #endif 00037 00038 #if @REPLACE_GETTIMEOFDAY@ 00039 # undef gettimeofday 00040 # define gettimeofday rpl_gettimeofday 00041 int gettimeofday (struct timeval *restrict, void *restrict); 00042 #endif 00043 00044 #endif /* _GL_SYS_TIME_H */