changeset 12082:d741ba7b3804

Fix broken build of replacement for Windows tmpfile().
author Ben Pfaff <blp@cs.stanford.edu>
date Wed, 30 Sep 2009 21:35:14 -0700
parents e0b4f68f21c2
children b7b81ca175f4
files ChangeLog lib/tmpfile.c
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-09-30  Ben Pfaff  <blp@gnu.org>
+
+	Fix broken build of replacement for Windows tmpfile().
+	* lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
+	flags argument added along with the 'mkostemp' module.
+
 2009-09-28  Bruno Haible  <bruno@clisp.org>
 
 	Avoid identifier clash with POSIX function 'remove' defined as a macro.
--- a/lib/tmpfile.c
+++ b/lib/tmpfile.c
@@ -1,5 +1,5 @@
 /* Create a temporary file.
-   Copyright (C) 2007 Free Software Foundation, Inc.
+   Copyright (C) 2007, 2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -83,7 +83,7 @@
 	  do
 	    {
 	      memcpy (&xtemplate[len - 6], "XXXXXX", 6);
-	      if (gen_tempname (xtemplate, GT_NOCREATE) < 0)
+	      if (gen_tempname (xtemplate, 0, GT_NOCREATE) < 0)
 		{
 		  fd = -1;
 		  break;