Module Name:    src
Committed By:   joerg
Date:           Sun Sep 24 09:43:27 UTC 2017

Modified Files:
        src/usr.bin/cvslatest: cvslatest.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/usr.bin/cvslatest/cvslatest.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/cvslatest/cvslatest.c
diff -u src/usr.bin/cvslatest/cvslatest.c:1.5 src/usr.bin/cvslatest/cvslatest.c:1.6
--- src/usr.bin/cvslatest/cvslatest.c:1.5	Thu Jan 12 14:27:14 2017
+++ src/usr.bin/cvslatest/cvslatest.c	Sun Sep 24 09:43:27 2017
@@ -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

Reply via email to