Mercurial > hg > octave-nkf > gnulib-hg
changeset 15950:8e43c0655192
perror: Fix autoconf test.
* m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
<stdlib.h> and <string.h>.
author | Daniel Richard G <skunk@iskunk.org> |
---|---|
date | Sat, 15 Oct 2011 01:35:34 +0200 |
parents | 0319356f65c3 |
children | cf6263b60cda |
files | ChangeLog m4/perror.m4 |
diffstat | 2 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- 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_LANG_PROGRAM( [[#include <errno.h> #include <stdio.h> + #include <stdlib.h> + #include <string.h> ]], [[char *str = strerror (-1); if (!getenv("CONFTEST_OUTPUT")) return 0;