Skip to content
Snippets Groups Projects
Commit 7e7253ce authored by deuce's avatar deuce
Browse files

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.  :-)
parent be4d7a25
Branches
Tags
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment