projects
/
cvc5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbe3d6d
)
Add HAVE_CLOCK_GETTIME guard to clock_gettime.c (#2428)
author
Mathias Preiner
<mathias.preiner@gmail.com>
Wed, 5 Sep 2018 03:40:32 +0000
(20:40 -0700)
committer
Andres Noetzli
<andres.noetzli@gmail.com>
Wed, 5 Sep 2018 03:40:32 +0000
(20:40 -0700)
src/lib/clock_gettime.c
patch
|
blob
|
history
diff --git
a/src/lib/clock_gettime.c
b/src/lib/clock_gettime.c
index 680098c8de809c75cdc0857d82d525ffa37ecadf..b440b8d28679ee89ea4cebb514644a5512d1264b 100644
(file)
--- a/
src/lib/clock_gettime.c
+++ b/
src/lib/clock_gettime.c
@@
-20,6
+20,8
@@
#include "lib/clock_gettime.h"
+#ifndef HAVE_CLOCK_GETTIME
+
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
@@
-83,3
+85,5
@@
long clock_gettime(clockid_t which_clock, struct timespec* tp) {
#ifdef __cplusplus
}/* extern "C" */
#endif /* __cplusplus */
+
+#endif /* HAVE_CLOCK_GETTIME */