summaryrefslogtreecommitdiff
path: root/m4/perror.m4
diff options
context:
space:
mode:
authorDaniel Richard G <skunk@iskunk.org>2011-10-15 01:35:34 +0200
committerBruno Haible <bruno@clisp.org>2011-10-15 01:35:34 +0200
commit32dbf2ceb339e1416390b551f65e4f84c033fd27 (patch)
tree677b44b6828604f1123aa8ab2af98434ae1d965b /m4/perror.m4
parenta4cb5c9ab8346145f78196686595ebab0b334451 (diff)
downloadgnulib-32dbf2ceb339e1416390b551f65e4f84c033fd27.tar.gz
perror: Fix autoconf test.
* m4/perror.m4 (gl_FUNC_PERROR): In the test program, include <stdlib.h> and <string.h>.
Diffstat (limited to 'm4/perror.m4')
-rw-r--r--m4/perror.m44
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/perror.m4 b/m4/perror.m4
index 86e20207f9..8c28d44b32 100644
--- a/m4/perror.m4
+++ b/m4/perror.m4
@@ -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;