perror: Fix autoconf test.
authorDaniel Richard G <skunk@iskunk.org>
Fri, 14 Oct 2011 23:35:34 +0000 (01:35 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 14 Oct 2011 23:35:34 +0000 (01:35 +0200)
* m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
<stdlib.h> and <string.h>.

ChangeLog
m4/perror.m4

index 3f9cf61..e7de3ad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
+
+       perror: Fix autoconf test.
+       * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
+       <stdlib.h> and <string.h>.
+
 2011-10-14  Bruno Haible  <bruno@clisp.org>
 
        ffsl: Optimize on 64-bit platforms.
index 86e2020..8c28d44 100644 (file)
@@ -1,4 +1,4 @@
-# perror.m4 serial 3
+# perror.m4 serial 4
 dnl Copyright (C) 2008-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -27,6 +27,8 @@ AC_DEFUN([gl_FUNC_PERROR],
            [AC_LANG_PROGRAM(
               [[#include <errno.h>
                 #include <stdio.h>
+                #include <stdlib.h>
+                #include <string.h>
               ]],
               [[char *str = strerror (-1);
                 if (!getenv("CONFTEST_OUTPUT")) return 0;