diff options
author | Daniel Richard G <skunk@iskunk.org> | 2011-10-15 01:35:34 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-10-15 01:35:34 +0200 |
commit | 32dbf2ceb339e1416390b551f65e4f84c033fd27 (patch) | |
tree | 677b44b6828604f1123aa8ab2af98434ae1d965b /m4/perror.m4 | |
parent | a4cb5c9ab8346145f78196686595ebab0b334451 (diff) | |
download | gnulib-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.m4 | 4 |
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; |