diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2017-04-07 16:09:48 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2017-04-07 16:11:24 +0200 |
commit | ecd96bda4966ad9d034021a76505a4652f632c95 (patch) | |
tree | 058f2a802076ab367b340205bf983f5ddbf43fc1 | |
parent | 71ea4830f9f69af92a23d9bd256eb3870765f510 (diff) | |
download | cmocka-ecd96bda4966ad9d034021a76505a4652f632c95.tar.gz cmocka-ecd96bda4966ad9d034021a76505a4652f632c95.tar.bz2 cmocka-ecd96bda4966ad9d034021a76505a4652f632c95.zip |
cmocka: Change define to HAVE_CLOCK_REALTIME
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r-- | ConfigureChecks.cmake | 2 | ||||
-rw-r--r-- | config.h.cmake | 2 | ||||
-rw-r--r-- | src/cmocka.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 31c5a94..9bdc6f8 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -135,7 +135,7 @@ int main(void) { clock_gettime(CLOCK_REALTIME, &ts); return 0; -}" HAVE_CLOCK_GETTIME_REALTIME) +}" HAVE_CLOCK_REALTIME) # reset cmake requirements set(CMAKE_REQUIRED_INCLUDES) diff --git a/config.h.cmake b/config.h.cmake index 920bb10..1aaabb5 100644 --- a/config.h.cmake +++ b/config.h.cmake @@ -158,7 +158,7 @@ #cmakedefine HAVE_MSVC_THREAD_LOCAL_STORAGE 1 /* Check if we have CLOCK_REALTIME for clock_gettime() */ -#cmakedefine HAVE_CLOCK_GETTIME_REALTIME 1 +#cmakedefine HAVE_CLOCK_REALTIME 1 /*************************** ENDIAN *****************************/ diff --git a/src/cmocka.c b/src/cmocka.c index d455710..69a8e82 100644 --- a/src/cmocka.c +++ b/src/cmocka.c @@ -82,7 +82,7 @@ # define CMOCKA_THREAD #endif -#ifdef HAVE_CLOCK_GETTIME_REALTIME +#ifdef HAVE_CLOCK_REALTIME #define CMOCKA_CLOCK_GETTIME(clock_id, ts) clock_gettime((clock_id), (ts)) #else #define CMOCKA_CLOCK_GETTIME(clock_id, ts) |