mkdtemp.h is replaced with <stdlib.h>.
authorBruno Haible <bruno@clisp.org>
Sun, 18 Feb 2007 15:42:40 +0000 (15:42 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 18 Feb 2007 15:42:40 +0000 (15:42 +0000)
lib/clean-temp.c
lib/mkdtemp.c
m4/mkdtemp.m4
modules/mkdtemp

index b2dc268..823a932 100644 (file)
@@ -39,7 +39,6 @@
 #include "fatal-signal.h"
 #include "pathmax.h"
 #include "tmpdir.h"
-#include "mkdtemp.h"
 #include "xalloc.h"
 #include "xallocsa.h"
 #include "gl_linkedhash_list.h"
index e916d38..36b6c75 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2001-2003, 2006 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2001-2003, 2006-2007 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    This program is free software; you can redistribute it and/or modify
 #include <config.h>
 
 /* Specification.  */
-#include "mkdtemp.h"
+#include <stdlib.h>
 
 #include "tempname.h"
-#include <stdlib.h>
 
 /* Generate a unique temporary directory from TEMPLATE.
    The last six characters of TEMPLATE must be "XXXXXX";
index fafc98e..0eeafbc 100644 (file)
@@ -1,13 +1,15 @@
-# mkdtemp.m4 serial 4
-dnl Copyright (C) 2001-2003, 2006 Free Software Foundation, Inc.
+# mkdtemp.m4 serial 5
+dnl Copyright (C) 2001-2003, 2006-2007 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
 dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gt_FUNC_MKDTEMP],
 [
+  AC_REQUIRE([gl_STDLIB_H_DEFAULTS])
   AC_REPLACE_FUNCS(mkdtemp)
   if test $ac_cv_func_mkdtemp = no; then
+    HAVE_MKDTEMP=0
     gl_PREREQ_MKDTEMP
   fi
 ])
index 8ea9658..d023f38 100644 (file)
@@ -2,21 +2,22 @@ Description:
 mkdtemp() function: create a private temporary directory.
 
 Files:
-lib/mkdtemp.h
 lib/mkdtemp.c
 m4/mkdtemp.m4
 
 Depends-on:
 stdint
+stdlib
 tempname
 
 configure.ac:
 gt_FUNC_MKDTEMP
+gl_STDLIB_MODULE_INDICATOR([mkdtemp])
 
 Makefile.am:
 
 Include:
-"mkdtemp.h"
+<stdlib.h>
 
 License:
 LGPL