From 9dffe404a464289aedade8762795ee4d1bbb1d3f Mon Sep 17 00:00:00 2001 From: "Barton E. Schaefer" Date: Mon, 9 May 2016 20:32:01 -0700 Subject: 38432: avoid nonstandard setenv() on __APPLE__ --- Src/zsh_system.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/zsh_system.h') diff --git a/Src/zsh_system.h b/Src/zsh_system.h index 811340d42..17c4c645e 100644 --- a/Src/zsh_system.h +++ b/Src/zsh_system.h @@ -728,7 +728,7 @@ extern char **environ; * We always need setenv and unsetenv in pairs, because * we don't know how to do memory management on the values set. */ -#if defined(HAVE_SETENV) && defined(HAVE_UNSETENV) +#if defined(HAVE_SETENV) && defined(HAVE_UNSETENV) && !defined(__APPLE__) # define USE_SET_UNSET_ENV #endif -- cgit v1.2.3 From caf48686d0e09691f004a5599a2031edb22cf5c0 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 9 Aug 2016 22:02:22 +0200 Subject: 39014: Use special OpenBSD interface to get correct rand() behavior --- ChangeLog | 5 +++++ Src/zsh_system.h | 4 ++++ configure.ac | 3 ++- 3 files changed, 11 insertions(+), 1 deletion(-) (limited to 'Src/zsh_system.h') diff --git a/ChangeLog b/ChangeLog index 8af09a396..7290210b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-08-10 Mikael Magnusson + + * 39014: Src/zsh_system.h, configure.ac: Use special OpenBSD + interface to get correct rand() behavior + 2016-08-06 Barton E. Schaefer * unposted: Src/Zle/zle_thingy.c: fix typo in comment diff --git a/Src/zsh_system.h b/Src/zsh_system.h index 17c4c645e..a9cbf02d0 100644 --- a/Src/zsh_system.h +++ b/Src/zsh_system.h @@ -882,6 +882,10 @@ extern short ospeed; # endif #endif +#ifdef HAVE_SRAND_DETERMINISTIC +# define srand srand_deterministic +#endif + #ifdef ZSH_VALGRIND # include "valgrind/valgrind.h" # include "valgrind/memcheck.h" diff --git a/configure.ac b/configure.ac index 9ce3a4589..bac62a638 100644 --- a/configure.ac +++ b/configure.ac @@ -1322,7 +1322,8 @@ AC_CHECK_FUNCS(strftime strptime mktime timelocal \ realpath canonicalize_file_name \ symlink getcwd \ cygwin_conv_path \ - nanosleep) + nanosleep \ + srand_deterministic) AC_FUNC_STRCOLL AH_TEMPLATE([REALPATH_ACCEPTS_NULL], -- cgit v1.2.3 From f912e83505e586b917748183772140c3f3560fe2 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Mon, 7 Nov 2016 11:36:17 +0900 Subject: 39728: define _GNU_SOURCE on Cygwin --- ChangeLog | 5 +++++ Src/Modules/datetime.c | 3 --- Src/zsh_system.h | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) (limited to 'Src/zsh_system.h') diff --git a/ChangeLog b/ChangeLog index d225597c5..a81a76f1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-11-07 Jun-ichi Takimoto + + * 39728: Src/zsh_system.h, Src/Modules/datetime.c: define + _GNU_SOURCE on Cygwin + 2016-11-07 Frank Terbeck * 39849: Completion/Unix/Command/_tmux: _tmux: Remove diff --git a/Src/Modules/datetime.c b/Src/Modules/datetime.c index b924392c5..bb82c542f 100644 --- a/Src/Modules/datetime.c +++ b/Src/Modules/datetime.c @@ -27,9 +27,6 @@ * */ -#ifdef __CYGWIN__ -#define _XOPEN_SOURCE -#endif #include "datetime.mdh" #include "datetime.pro" #include diff --git a/Src/zsh_system.h b/Src/zsh_system.h index a9cbf02d0..5339b496f 100644 --- a/Src/zsh_system.h +++ b/Src/zsh_system.h @@ -37,7 +37,7 @@ #endif #endif -#if defined(__linux) || defined(__GNU__) || defined(__GLIBC__) || defined(LIBC_MUSL) +#if defined(__linux) || defined(__GNU__) || defined(__GLIBC__) || defined(LIBC_MUSL) || defined(__CYGWIN__) /* * Turn on numerous extensions. * This is in order to get the functions for manipulating /dev/ptmx. -- cgit v1.2.3