From: Bruno Haible Date: Sat, 4 Jun 2011 09:11:44 +0000 (+0200) Subject: strerror-override: Don't disable symbol renamings. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88e63ce16579840697254b8f821a43b5729f788e;p=pspp 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. --- diff --git a/ChangeLog b/ChangeLog index d52fdaa939..849ed2dff1 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 5fcbe1fd08..c2ca764eb4 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 0718b53480..b8ef854847 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