From 9eec84a935e3cd2f2da51ae9f65229e1422df74a Mon Sep 17 00:00:00 2001 From: Kevin Ryde Date: Thu, 16 Aug 2007 23:33:46 +0000 Subject: [PATCH] Add #define _REENTRANT, to get gmtime_r() prototype on solaris 2.6. Reported by anirkko. --- libguile/stime.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libguile/stime.c b/libguile/stime.c index 418e80f21..39621662c 100644 --- a/libguile/stime.c +++ b/libguile/stime.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. +/* Copyright (C) 1995,1996,1997,1998,1999,2000,2001, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -32,6 +32,7 @@ hard coding __hpux. */ #define _GNU_SOURCE /* ask glibc for everything, in particular strptime */ +#define _REENTRANT /* ask solaris for gmtime_r prototype */ #ifdef __hpux #define _POSIX_C_SOURCE 199506L /* for gmtime_r prototype */ #endif