2015-02-19 Jon TURNEY <jon.turney@dronecode.org.uk>
* include/cygwin/stdlib.h (initstate, random, setstate, srandom): Check if __XSI_VISIBLE is set by sys/cdefs.h, rather than testing for _XOPEN_SOURCE directly, to work correctly when _GNU_SOURCE is set.
This commit is contained in:
parent
c53c879db4
commit
09766bc8a0
|
@ -1,3 +1,10 @@
|
|||
2015-02-19 Jon TURNEY <jon.turney@dronecode.org.uk>
|
||||
|
||||
* include/cygwin/stdlib.h (initstate, random, setstate, srandom):
|
||||
Check if __XSI_VISIBLE is set by sys/cdefs.h, rather than testing
|
||||
for _XOPEN_SOURCE directly, to work correctly when _GNU_SOURCE is
|
||||
set.
|
||||
|
||||
2015-02-19 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* sec_acl.cc (setacl): Always grant owner FILE_WRITE_ATTRIBUTES access.
|
||||
|
|
|
@ -11,6 +11,7 @@ details. */
|
|||
#ifndef _CYGWIN_STDLIB_H
|
||||
#define _CYGWIN_STDLIB_H
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
#include <cygwin/wait.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -31,9 +32,7 @@ void setprogname (const char *);
|
|||
char *canonicalize_file_name (const char *);
|
||||
int unsetenv (const char *);
|
||||
#endif /*__STRICT_ANSI__*/
|
||||
#if !defined(__STRICT_ANSI__) \
|
||||
|| (defined(_XOPEN_SOURCE) \
|
||||
&& ((_XOPEN_SOURCE - 0 >= 500) || defined(_XOPEN_SOURCE_EXTENDED)))
|
||||
#if !defined(__STRICT_ANSI__) || (__XSI_VISIBLE >= 500)
|
||||
char *initstate (unsigned seed, char *state, size_t size);
|
||||
long random (void);
|
||||
char *setstate (const char *state);
|
||||
|
|
Loading…
Reference in New Issue