X-Git-Url: https://git.gag.com/?a=blobdiff_plain;ds=inline;f=gnulib%2Fsys_time.in.h;h=d9fb361b87d87ca257df661adf36697a65dca915;hb=fd48f3e498442f0cbff5f3606c7c403d0566150e;hp=6b65cb617eb4febec8a71d43c962aab88a721ab4;hpb=96f35b20267e8b1a1c846d476f27fcd330e0b018;p=debian%2Famanda diff --git a/gnulib/sys_time.in.h b/gnulib/sys_time.in.h index 6b65cb6..d9fb361 100644 --- a/gnulib/sys_time.in.h +++ b/gnulib/sys_time.in.h @@ -1,10 +1,10 @@ /* Provide a more complete sys/time.h. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2008 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 - the Free Software Foundation; either version 3, or (at your option) + the Free Software Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -18,6 +18,10 @@ /* Written by Paul Eggert. */ +#if __GNUC__ >= 3 +@PRAGMA_SYSTEM_HEADER@ +#endif + #if defined _GL_SYS_TIME_H /* Simply delegate to the system's header, without adding anything. */ @@ -35,6 +39,10 @@ # include # endif +#ifdef __cplusplus +extern "C" { +#endif + # if ! @HAVE_STRUCT_TIMEVAL@ struct timeval { @@ -46,7 +54,11 @@ struct timeval # if @REPLACE_GETTIMEOFDAY@ # undef gettimeofday # define gettimeofday rpl_gettimeofday -int gettimeofday (struct timeval *, void *); +int gettimeofday (struct timeval *restrict, void *restrict); # endif +#ifdef __cplusplus +} +#endif + #endif /* _GL_SYS_TIME_H */