projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dadb126
)
Add OpenBSD to ifdef list since it has CLOCK_MONOTONIC.
author
Brad
<brad@comstyle.com>
Tue, 21 Dec 2010 02:24:32 +0000
(21:24 -0500)
committer
Blue Swirl
<blauwirbel@gmail.com>
Tue, 21 Dec 2010 19:44:42 +0000
(19:44 +0000)
Signed-off-by: Brad Smith <brad@comstyle.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
qemu-timer-common.c
patch
|
blob
|
history
diff --git
a/qemu-timer-common.c
b/qemu-timer-common.c
index
fff4399
..
755e300
100644
(file)
--- a/
qemu-timer-common.c
+++ b/
qemu-timer-common.c
@@
-50,7
+50,8
@@
static void __attribute__((constructor)) init_get_clock(void)
{
use_rt_clock = 0;
#if defined(__linux__) || (defined(__FreeBSD__) && __FreeBSD_version >= 500000) \
- || defined(__DragonFly__) || defined(__FreeBSD_kernel__)
+ || defined(__DragonFly__) || defined(__FreeBSD_kernel__) \
+ || defined(__OpenBSD__)
{
struct timespec ts;
if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) {