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

Use -D_POSIX_PTHREAD_SEMANTICS even if not threads are being used to force

the correct implementation of ctime_r() to be used.
parent 5919656b
Branches
Tags
No related merge requests found
......@@ -269,6 +269,8 @@ else
XP_SEM := 1
MT_CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
MT_CFLAGS += -DUSE_XP_SEMAPHORES
# This makes ctime_r() be the correct one.
CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
else # Linux / Other UNIX
XP_SEM := 1
MT_CFLAGS += -DUSE_XP_SEMAPHORES
......
......@@ -277,13 +277,7 @@ DLLEXPORT int DLLCALL get_errno(void);
#endif
#if defined(__solaris__)
/*
* 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)
/* #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