Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/cvslatest Force _GNU_SOURCE on Linux, otherwise strp...



details:   https://anonhg.NetBSD.org/src/rev/428895e22b08
branches:  trunk
changeset: 826720:428895e22b08
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Sep 24 09:43:27 2017 +0000

description:
Force _GNU_SOURCE on Linux, otherwise strptime is not defined and more
restrictive macros result in even nastier fallout.

diffstat:

 usr.bin/cvslatest/cvslatest.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r eb7ec3c85331 -r 428895e22b08 usr.bin/cvslatest/cvslatest.c
--- a/usr.bin/cvslatest/cvslatest.c     Sun Sep 24 07:39:28 2017 +0000
+++ b/usr.bin/cvslatest/cvslatest.c     Sun Sep 24 09:43:27 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cvslatest.c,v 1.5 2017/01/12 14:27:14 christos Exp $   */
+/*     $NetBSD: cvslatest.c,v 1.6 2017/09/24 09:43:27 joerg Exp $      */
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -29,12 +29,16 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#ifdef __linux__
+#define _GNU_SOURCE
+#endif
+
 #ifdef HAVE_NBTOOL_CONFIG_H
 #include "nbtool_config.h"
 #endif
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: cvslatest.c,v 1.5 2017/01/12 14:27:14 christos Exp $");
+__RCSID("$NetBSD: cvslatest.c,v 1.6 2017/09/24 09:43:27 joerg Exp $");
 
 /*
  * Find the latest timestamp in a set of CVS trees, by examining the



Home | Main Index | Thread Index | Old Index