@@ -41,7 +41,7 @@ static struct {
|
||||
static epicsThreadOnceId onceId = EPICS_THREAD_ONCE_INIT;
|
||||
|
||||
|
||||
#ifdef CLOCK_REALTIME
|
||||
#if defined(CLOCK_REALTIME) && !defined(_WIN32)
|
||||
/* This code is not used on systems without Posix CLOCK_REALTIME,
|
||||
* but the only way to detect that is from the OS headers, so the
|
||||
* Makefile can't exclude compiling this file on those systems.
|
||||
@@ -229,7 +229,11 @@ static int ClockTimeGetCurrent(epicsTimeStamp *pDest)
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif /* CLOCK_REALTIME */
|
||||
/* Used in Report function below: */
|
||||
#define UNINIT_ERROR "initialized"
|
||||
#else
|
||||
#define UNINIT_ERROR "available"
|
||||
#endif /* CLOCK_REALTIME && !WIN32 */
|
||||
|
||||
/* Allow the following report routine to be compiled anyway
|
||||
* to avoid getting a build warning from ranlib.
|
||||
@@ -242,13 +246,7 @@ int ClockTime_Report(int level)
|
||||
char timebuf[32];
|
||||
|
||||
if (onceId == EPICS_THREAD_ONCE_INIT) {
|
||||
printf("OS Clock driver not %s.\n",
|
||||
#ifdef CLOCK_REALTIME
|
||||
"initialized"
|
||||
#else
|
||||
"available"
|
||||
#endif /* CLOCK_REALTIME */
|
||||
);
|
||||
puts("OS Clock driver not " UNINIT_ERROR);
|
||||
}
|
||||
else if (ClockTimePvt.synchronize == CLOCKTIME_SYNC) {
|
||||
int synchronized, syncFromPriority;
|
||||
|
||||
Reference in New Issue
Block a user