From 23b3b76c1d0b966f8555ce3172000a141e7f0aef Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Fri, 12 Nov 2021 16:21:34 -0700 Subject: [PATCH] lib/csa: fix implicit-function-declaration warnings --- cde/lib/csa/iso8601.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cde/lib/csa/iso8601.c b/cde/lib/csa/iso8601.c index f46ac9fa1..911468713 100644 --- a/cde/lib/csa/iso8601.c +++ b/cde/lib/csa/iso8601.c @@ -28,6 +28,10 @@ * (c) Copyright 1993, 1994 Sun Microsystems, Inc. */ +#if defined(__linux__) || defined(CSRG_BASED) +# define _GNU_SOURCE +#endif + #include #define XOS_USE_NO_LOCKING #define X_INCLUDE_TIME_H