X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsys_time.in.h;h=442cae3270dab622301e18ae674102f3ec230b01;hb=51983dcb2ce9d20eb1f72d0b877e40fe0de07e87;hp=439d3bb239180758c66685de2379b65d697736d2;hpb=3c08dcc35ce66a98261584beea4c5006fa28ca9b;p=gnulib.git diff --git a/lib/sys_time.in.h b/lib/sys_time.in.h index 439d3bb23..442cae327 100644 --- a/lib/sys_time.in.h +++ b/lib/sys_time.in.h @@ -1,6 +1,6 @@ /* Provide a more complete sys/time.h. - Copyright (C) 2007-2008 Free Software Foundation, Inc. + Copyright (C) 2007-2010 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 @@ -39,6 +39,12 @@ # include # endif +/* The definition of _GL_ARG_NONNULL is copied here. */ + +#ifdef __cplusplus +extern "C" { +#endif + # if ! @HAVE_STRUCT_TIMEVAL@ struct timeval { @@ -50,7 +56,12 @@ struct timeval # if @REPLACE_GETTIMEOFDAY@ # undef gettimeofday # define gettimeofday rpl_gettimeofday -int gettimeofday (struct timeval *restrict, void *restrict); +extern int gettimeofday (struct timeval *restrict, void *restrict) + _GL_ARG_NONNULL ((1)); # endif +#ifdef __cplusplus +} +#endif + #endif /* _GL_SYS_TIME_H */