bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

C++ support (5)


From: Eric Blake
Subject: C++ support (5)
Date: Wed, 1 Nov 2006 16:32:21 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

On Linux, a c++ compile failed to pick up that the system mkstemp was adequate, 
due to misuse of a keyword.  I'm checking this in.

2006-11-01  Eric Blake  <address@hidden>

        * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.

Index: m4/mkstemp.m4
===================================================================
RCS file: /sources/gnulib/gnulib/m4/mkstemp.m4,v
retrieving revision 1.20
diff -u -r1.20 mkstemp.m4
--- m4/mkstemp.m4       27 Oct 2006 13:51:23 -0000      1.20
+++ m4/mkstemp.m4       1 Nov 2006 16:31:05 -0000
@@ -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);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]