summaryrefslogtreecommitdiffstats
path: root/include/stdlib.h
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2009-03-14 02:31:48 +0000
committerdas <das@FreeBSD.org>2009-03-14 02:31:48 +0000
commit08eb82238e2aa57a673674eb3e90666d2c47277f (patch)
tree92c28c6e56d781e1aca108425204267987f62b73 /include/stdlib.h
parentec2ea05f80f3f6eb6c1d34ac7692388ed7b18159 (diff)
downloadFreeBSD-src-08eb82238e2aa57a673674eb3e90666d2c47277f.zip
FreeBSD-src-08eb82238e2aa57a673674eb3e90666d2c47277f.tar.gz
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.
Diffstat (limited to 'include/stdlib.h')
-rw-r--r--include/stdlib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h
index cd15706..b036bb9 100644
--- a/include/stdlib.h
+++ b/include/stdlib.h
@@ -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
OpenPOWER on IntegriCloud