mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-20 16:01:04 +02:00
zsh-workers/10006
This commit is contained in:
parent
42a779d5c2
commit
1b5252bf38
2 changed files with 6 additions and 1 deletions
|
@ -1091,7 +1091,12 @@ gettempname(void)
|
||||||
if (!(s = getsparam("TMPPREFIX")))
|
if (!(s = getsparam("TMPPREFIX")))
|
||||||
s = DEFAULT_TMPPREFIX;
|
s = DEFAULT_TMPPREFIX;
|
||||||
|
|
||||||
|
#ifdef HAVE__MKTEMP
|
||||||
|
/* Zsh uses mktemp() safely, so silence the warnings */
|
||||||
|
return ((char *) _mktemp(dyncat(unmeta(s), "XXXXXX")));
|
||||||
|
#else
|
||||||
return ((char *) mktemp(dyncat(unmeta(s), "XXXXXX")));
|
return ((char *) mktemp(dyncat(unmeta(s), "XXXXXX")));
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check if a string contains a token */
|
/* Check if a string contains a token */
|
||||||
|
|
|
@ -813,7 +813,7 @@ AC_CHECK_FUNCS(lchown memcpy memmove \
|
||||||
nis_list initgroups fchdir cap_get_proc readlink nice \
|
nis_list initgroups fchdir cap_get_proc readlink nice \
|
||||||
getgrgid getgrnam getpwent getpwnam getpwuid setpgrp \
|
getgrgid getgrnam getpwent getpwnam getpwuid setpgrp \
|
||||||
inet_aton inet_pton inet_ntop getipnodebyname gethostbyname2 \
|
inet_aton inet_pton inet_ntop getipnodebyname gethostbyname2 \
|
||||||
fseeko ftello mmap munmap msync ftruncate setlocale)
|
fseeko ftello mmap munmap msync ftruncate setlocale _mktemp)
|
||||||
|
|
||||||
dnl ---------------
|
dnl ---------------
|
||||||
dnl CHECK FUNCTIONS
|
dnl CHECK FUNCTIONS
|
||||||
|
|
Loading…
Reference in a new issue