Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Mar 2009 02:31:49 +0000 (UTC)
From:      David Schultz <das@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189782 - head/include
Message-ID:  <200903140231.n2E2VnPw079335@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: das
Date: Sat Mar 14 02:31:48 2009
New Revision: 189782
URL: http://svn.freebsd.org/changeset/base/189782

Log:
  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.

Modified:
  head/include/stdlib.h

Modified: head/include/stdlib.h
==============================================================================
--- head/include/stdlib.h	Sat Mar 14 01:12:35 2009	(r189781)
+++ head/include/stdlib.h	Sat Mar 14 02:31:48 2009	(r189782)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903140231.n2E2VnPw079335>