Mercurial > hg > octave-nkf > gnulib-hg
changeset 7630:faad736001a3
* lib/tempname.c (gen_tempname): Remove variant that invokes
__gen_tempname.
* m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
__gen_tempname.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Thu, 09 Nov 2006 18:49:46 +0000 |
parents | 3eb2e9710400 |
children | dea67355b192 |
files | ChangeLog lib/tempname.c m4/tempname.m4 |
diffstat | 3 files changed, 8 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-11-09 Bruno Haible <bruno@clisp.org> + + * lib/tempname.c (gen_tempname): Remove variant that invokes + __gen_tempname. + * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for + __gen_tempname. + 2006-11-08 Bruno Haible <bruno@clisp.org> * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
--- a/lib/tempname.c +++ b/lib/tempname.c @@ -200,7 +200,6 @@ __GT_DIR: create a directory, which will be mode 0700. We use a clever algorithm to get hard-to-predict names. */ -#if _LIBC || !HAVE___GEN_TEMPNAME int __gen_tempname (char *tmpl, int kind) { @@ -321,15 +320,3 @@ __set_errno (EEXIST); return -1; } - -#else /* !_LIBC && HAVE___GEN_TEMPNAME */ - -# undef __gen_tempname -extern int __gen_tempname (char *, int); -int -gen_tempname (char *tmpl, int kind) -{ - return __gen_tempname (tmpl, kind); -} - -#endif /* !_LIBC && HAVE___GEN_TEMPNAME */
--- a/m4/tempname.m4 +++ b/m4/tempname.m4 @@ -1,4 +1,4 @@ -#serial 1 +#serial 2 # Copyright (C) 2006 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation @@ -10,7 +10,6 @@ AC_DEFUN([gl_FUNC_GEN_TEMPNAME], [ AC_REQUIRE([AC_SYS_LARGEFILE]) - AC_CHECK_FUNCS_ONCE([__gen_tempname]) AC_LIBOBJ([tempname]) gl_PREREQ_TEMPNAME