changeset 7975:4c56bddfd956

* lib/mempcpy.c: Include <config.h> before <string.h>. This fixes a compilation error on HP-UX, due to the system's "restrict"-using mempcpy prototype.
author Jim Meyering <jim@meyering.net>
date Sat, 27 Jan 2007 07:35:49 +0000
parents ace01389ef5b
children caf7dcb02c3d
files ChangeLog lib/mempcpy.c
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-01-27  Jim Meyering  <jim@meyering.net>
+
+	* lib/mempcpy.c: Include <config.h> before <string.h>.
+	This fixes a compilation error on HP-UX, due to the system's
+	"restrict"-using mempcpy prototype.
+
 2007-01-26  Bruno Haible  <bruno@clisp.org>
 
 	Small optimization.
--- a/lib/mempcpy.c
+++ b/lib/mempcpy.c
@@ -15,6 +15,8 @@
    along with this program; if not, write to the Free Software Foundation,
    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
+#include <config.h>
+
 /* Specification.  */
 #include <string.h>