changeset 14859:66acfe2be3d5

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 04 Jun 2011 11:11:44 +0200
parents dd10bbc31f53
children c12e3d2438e8
files ChangeLog lib/strerror-override.c lib/strerror-override.h
diffstat 3 files changed, 11 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-06-04  Bruno Haible  <bruno@clisp.org>
+
+	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  <bruno@clisp.org>
 
 	Copyright: Use LGPL 2.1 instead of LGPL 2.0.
--- a/lib/strerror-override.c
+++ b/lib/strerror-override.c
@@ -17,6 +17,8 @@
 
 /* Written by Bruno Haible <bruno@clisp.org>, 2010.  */
 
+#include <config.h>
+
 #include "strerror-override.h"
 
 #include <errno.h>
@@ -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 *
--- 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 <string.h>
+# include <errno.h>
+# include <stddef.h>
 
 /* Reasonable buffer size that should never trigger ERANGE; if this
    proves too small, we intentionally abort(), to remind us to fix