From 4b7d778c73a7679a45fe6295940ed46a4aa6606f Mon Sep 17 00:00:00 2001 From: jdarrington Date: Sun, 9 Aug 2020 12:53:32 +0200 Subject: [PATCH] Update to more recent GNULIB --- README.Git | 12 +++++------- src/libpspp/temp-file.c | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.Git b/README.Git index f101c058a8..0eaa66fb6a 100644 --- a/README.Git +++ b/README.Git @@ -37,15 +37,13 @@ Gnulib does not maintain a stable API or ABI, so it is possible that PSPP will not work with older or newer versions of Gnulib. - commit 1e972a8a37c153ddc15e604592f84f939eb3c2ad - Author: Bruno Haible - Date: Sat Jun 6 10:14:24 2020 +0200 + commit d6dabe8eece3a9c1269dc1c084531ce447c7a42e (HEAD -> master, origin/master, origin/HEAD) + Author: Bruno Haible + Date: Sun Aug 9 12:36:37 2020 +0200 - calloc-gnu tests: Avoid a test failure with clang. - - * tests/test-calloc-gnu.c (main): Mark the pointer variable as - 'volatile', to defeat compiler optimizations. + Use __builtin_signbit* with clang. + * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang. To clone Gnulib into a directory named "gnulib" using Git, and then check out this particular commit, run these commands: diff --git a/src/libpspp/temp-file.c b/src/libpspp/temp-file.c index 839b99e757..03e6f18e61 100644 --- a/src/libpspp/temp-file.c +++ b/src/libpspp/temp-file.c @@ -105,7 +105,7 @@ create_temp_file (void) file_name = xasprintf ("%s/%d", temp_dir->dir_name, idx++); register_temp_file (temp_dir, file_name); - stream = fopen_temp (file_name, "wb+"); + stream = fopen_temp (file_name, "wb+", true); if (stream == NULL) unregister_temp_file (temp_dir, file_name); else -- 2.30.2