From 08eb82238e2aa57a673674eb3e90666d2c47277f Mon Sep 17 00:00:00 2001 From: das Date: Sat, 14 Mar 2009 02:31:48 +0000 Subject: 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. --- include/stdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/stdlib.h') 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 -- cgit v1.1