Mercurial > hg > octave-jordi > gnulib-hg
diff lib/error.c @ 14868:3b0e2e72c0a2
error: Avoid gcc warning.
* lib/error.c (strerror_r): Declare also when its return type is 'int'.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 05 Jun 2011 14:57:16 +0200 (2011-06-05) |
parents | 97fc9a21a8fb |
children | b86e9061a6d0 |
line wrap: on
line diff
--- a/lib/error.c +++ b/lib/error.c @@ -97,11 +97,15 @@ /* The gnulib override of fcntl is not needed in this file. */ # undef fcntl -# if !HAVE_DECL_STRERROR_R && STRERROR_R_CHAR_P +# if !HAVE_DECL_STRERROR_R # ifndef HAVE_DECL_STRERROR_R "this configure-time declaration test was not run" # endif +# if STRERROR_R_CHAR_P char *strerror_r (); +# else +int strerror_r (); +# endif # endif /* The calling program should define program_name and set it to the