mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
r189349 removed mktemp() from the XSI namespace when
__XOPEN_SOURCE >= 700, since mktemp() was withdrawn from the standard. However, __XSI_VISIBLE is set to 700 in the default BSD envrionment, where mktemp() should still exist; hence, check for this.
This commit is contained in:
parent
49dd3b8df9
commit
d9c4315930
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=189782
|
@ -196,7 +196,7 @@ long jrand48(unsigned short[3]);
|
|||
char *l64a(long);
|
||||
void lcong48(unsigned short[7]);
|
||||
long lrand48(void);
|
||||
#if !defined(_MKTEMP_DECLARED) && __XSI_VISIBLE <= 600
|
||||
#if !defined(_MKTEMP_DECLARED) && (__BSD_VISIBLE || __XSI_VISIBLE <= 600)
|
||||
char *mktemp(char *);
|
||||
#define _MKTEMP_DECLARED
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue