From 7e7253ce556ab008e804aa4db5995fbe7ed51be4 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Sun, 11 Sep 2005 22:33:48 +0000 Subject: [PATCH] Add a kludge for solaris ctime_r. Solaris actually has two POSIX ctime_r() implementations... one with three args which is from a draft standard and is supplied for backwards compatability, and one with two args which conforms to the final POSIX standard. This is a kludge since it doesn't use the correct methods for selecting which ctime_r() (and asctime_r()) implementation to use. I don't have time right now to dig up the "right" way. Instructions are welcome. :-) --- src/xpdev/genwrap.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/xpdev/genwrap.h b/src/xpdev/genwrap.h index 1a132c7b50..c81475b318 100644 --- a/src/xpdev/genwrap.h +++ b/src/xpdev/genwrap.h @@ -277,7 +277,13 @@ DLLEXPORT int DLLCALL get_errno(void); #endif #if defined(__solaris__) - #define CTIME_R(x,y) ctime_r(x,y) + /* + * Solaris actually does have TWO ctime_r() implementations. + * there is proboble a CORRECT way of selecting one, but I don't + * have time to look it up right now. + * This is therefore, a Kludge. ToDo + */ + #define CTIME_R(x,y) __posix_ctime_r(x,y) /* #define CTIME_R(x,y) ctime_r(x,y,sizeof y) */ #else #define CTIME_R(x,y) ctime_r(x,y) -- GitLab