Added include stdlib.h a few places to get prototype for atoi/exit/..
[idzebra-moved-to-github.git] / rset / rstemp.c
index b492f0e..b2a2820 100644 (file)
@@ -1,6 +1,6 @@
-/* $Id: rstemp.c,v 1.55 2004-11-19 10:27:14 heikki Exp $
-   Copyright (C) 1995,1996,1997,1998,1999,2000,2001,2002,2003
-   Index Data Aps
+/* $Id: rstemp.c,v 1.58 2005-01-16 23:14:57 adam Exp $
+   Copyright (C) 1995-2005
+   Index Data ApS
 
 This file is part of the Zebra server.
 
@@ -21,6 +21,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
 */
 
 #include <fcntl.h>
+#include <stdlib.h>
 #include <assert.h>
 #ifdef WIN32
 #include <io.h>
@@ -167,8 +168,8 @@ static void r_flush (RSFD rfd, int mk)
 
     if (!info->fname && mk)
     {
-#if HAVE_MKSTEMP
         char template[1024];
+#if HAVE_MKSTEMP
 
         if (info->temp_path)
             sprintf (template, "%s/zrsXXXXXX", info->temp_path);