[Gmp-commit] /var/hg/gmp-6.2: Undo 2020-05-25 _POSIX_C_SOURCE change, it brea...

mercurial at gmplib.org mercurial at gmplib.org
Sun May 24 22:57:07 UTC 2020


details:   /var/hg/gmp-6.2/rev/94b29198ab4a
changeset: 18055:94b29198ab4a
user:      Torbjorn Granlund <tg at gmplib.org>
date:      Mon May 25 00:56:59 2020 +0200
description:
Undo 2020-05-25 _POSIX_C_SOURCE change, it breaks on many broken systems.

diffstat:

 tune/freq.c   |  2 --
 tune/speed.c  |  2 --
 tune/time.c   |  2 --
 tune/tuneup.c |  2 --
 4 files changed, 0 insertions(+), 8 deletions(-)

diffs (48 lines):

diff -r 21062fa5870e -r 94b29198ab4a tune/freq.c
--- a/tune/freq.c	Thu May 21 12:11:00 2020 +0200
+++ b/tune/freq.c	Mon May 25 00:56:59 2020 +0200
@@ -60,8 +60,6 @@
 
 */
 
-#define _POSIX_C_SOURCE 2	/* for popen */
-
 #include "config.h"
 
 #if HAVE_INVENT_H
diff -r 21062fa5870e -r 94b29198ab4a tune/speed.c
--- a/tune/speed.c	Thu May 21 12:11:00 2020 +0200
+++ b/tune/speed.c	Mon May 25 00:56:59 2020 +0200
@@ -38,8 +38,6 @@
    The routines don't have help messages or descriptions, but most have
    suggestive names.  See the source code for full details. */
 
-#define _POSIX_C_SOURCE 2
-
 #include "config.h"
 
 #include <limits.h>
diff -r 21062fa5870e -r 94b29198ab4a tune/time.c
--- a/tune/time.c	Thu May 21 12:11:00 2020 +0200
+++ b/tune/time.c	Mon May 25 00:56:59 2020 +0200
@@ -151,8 +151,6 @@
    speed, on 4xx chips it's either that or an external clock.  Measuring
    against gettimeofday might be ok.  */
 
-#define _POSIX_C_SOURCE 199309L
-
 #include "config.h"
 
 #include <errno.h>
diff -r 21062fa5870e -r 94b29198ab4a tune/tuneup.c
--- a/tune/tuneup.c	Thu May 21 12:11:00 2020 +0200
+++ b/tune/tuneup.c	Mon May 25 00:56:59 2020 +0200
@@ -110,8 +110,6 @@
 
 #define TUNE_PROGRAM_BUILD  1   /* for gmp-impl.h */
 
-#define _POSIX_C_SOURCE 2
-
 #include "config.h"
 
 #include <math.h>



More information about the gmp-commit mailing list