Mercurial > hg > octave-nkf > gnulib-hg
changeset 7594:1050e73524d4
* m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Wed, 01 Nov 2006 16:32:50 +0000 |
parents | 558b4ff807ab |
children | d96b2147d668 |
files | ChangeLog m4/mkstemp.m4 |
diffstat | 2 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-11-01 Eric Blake <ebb9@byu.net> + + * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration. + 2006-10-29 Bruno Haible <bruno@clisp.org> Make it compile in C++ mode.
--- a/m4/mkstemp.m4 +++ b/m4/mkstemp.m4 @@ -1,4 +1,4 @@ -#serial 15 +#serial 16 # Copyright (C) 2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -28,9 +28,9 @@ large = 2147483647; for (i = 0; i < 70; i++) { - char template[] = "conftest.mkstemp/coXXXXXX"; + char templ[] = "conftest.mkstemp/coXXXXXX"; int (*mkstemp_function) (char *) = mkstemp; - int fd = mkstemp_function (template); + int fd = mkstemp_function (templ); if (fd < 0 || lseek (fd, large, SEEK_SET) != large) return 1; close (fd);