From 88e63ce16579840697254b8f821a43b5729f788e Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 4 Jun 2011 11:11:44 +0200 Subject: [PATCH] strerror-override: Don't disable symbol renamings. * lib/strerror-override.h: Include errno.h and stddef.h, not string.h. * lib/strerror-override.c: Include config.h. (strerror_override): Don't undefine. --- ChangeLog | 7 +++++++ lib/strerror-override.c | 6 ++---- lib/strerror-override.h | 3 ++- 3 files changed, 11 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index d52fdaa93..849ed2dff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-06-04 Bruno Haible + + strerror-override: Don't disable symbol renamings. + * lib/strerror-override.h: Include errno.h and stddef.h, not string.h. + * lib/strerror-override.c: Include config.h. + (strerror_override): Don't undefine. + 2011-06-03 Bruno Haible Copyright: Use LGPL 2.1 instead of LGPL 2.0. diff --git a/lib/strerror-override.c b/lib/strerror-override.c index 5fcbe1fd0..c2ca764eb 100644 --- a/lib/strerror-override.c +++ b/lib/strerror-override.c @@ -17,6 +17,8 @@ /* Written by Bruno Haible , 2010. */ +#include + #include "strerror-override.h" #include @@ -27,10 +29,6 @@ # endif #endif -/* This undefine allows testing with gl_cv_header_errno_h_complete=no on - a system that otherwise has a complete errno.h. */ -#undef strerror_override - /* If ERRNUM maps to an errno value defined by gnulib, return a string describing the error. Otherwise return NULL. */ const char * diff --git a/lib/strerror-override.h b/lib/strerror-override.h index 0718b5348..b8ef85484 100644 --- a/lib/strerror-override.h +++ b/lib/strerror-override.h @@ -18,7 +18,8 @@ #ifndef _GL_STRERROR_OVERRIDE_H # define _GL_STRERROR_OVERRIDE_H -# include +# include +# include /* Reasonable buffer size that should never trigger ERANGE; if this proves too small, we intentionally abort(), to remind us to fix -- 2.11.0