diff options
author | Bruno Haible <bruno@clisp.org> | 2007-02-18 15:42:40 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2007-02-18 15:42:40 +0000 |
commit | aa450ef4b62178b6c4264e15f742d47ee327f8f5 (patch) | |
tree | d869d0dbba5dab47811b460816df244ac3d2a78c | |
parent | 1a250c09937f66c0926b949580525b88c334251c (diff) | |
download | gnulib-aa450ef4b62178b6c4264e15f742d47ee327f8f5.tar.gz |
mkdtemp.h is replaced with <stdlib.h>.
-rw-r--r-- | lib/clean-temp.c | 1 | ||||
-rw-r--r-- | lib/mkdtemp.c | 5 | ||||
-rw-r--r-- | m4/mkdtemp.m4 | 6 | ||||
-rw-r--r-- | modules/mkdtemp | 5 |
4 files changed, 9 insertions, 8 deletions
diff --git a/lib/clean-temp.c b/lib/clean-temp.c index b2dc268bfa..823a932676 100644 --- a/lib/clean-temp.c +++ b/lib/clean-temp.c @@ -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" diff --git a/lib/mkdtemp.c b/lib/mkdtemp.c index e916d385b1..36b6c7577e 100644 --- a/lib/mkdtemp.c +++ b/lib/mkdtemp.c @@ -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 @@ -20,10 +20,9 @@ #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"; diff --git a/m4/mkdtemp.m4 b/m4/mkdtemp.m4 index fafc98e4c0..0eeafbc9a6 100644 --- a/m4/mkdtemp.m4 +++ b/m4/mkdtemp.m4 @@ -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 ]) diff --git a/modules/mkdtemp b/modules/mkdtemp index 8ea9658ea7..d023f3854d 100644 --- a/modules/mkdtemp +++ b/modules/mkdtemp @@ -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 |