summaryrefslogtreecommitdiff
path: root/src/libstddjb/sysclock_set.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2021-05-14 23:17:52 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2021-05-14 23:17:52 +0000
commit0c99a8d8aa8ebfabe4d72d092a8c0d8298a233ba (patch)
tree0badc2c39a194539955defbf576e8daf5fed843c /src/libstddjb/sysclock_set.c
parentd7fdd3f5cb297cddf08b8962040e48095893ab02 (diff)
downloadskalibs-0c99a8d8aa8ebfabe4d72d092a8c0d8298a233ba.tar.xz
Cosmetic fixes
Diffstat (limited to 'src/libstddjb/sysclock_set.c')
-rw-r--r--src/libstddjb/sysclock_set.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/libstddjb/sysclock_set.c b/src/libstddjb/sysclock_set.c
index 57e2abe..76917af 100644
--- a/src/libstddjb/sysclock_set.c
+++ b/src/libstddjb/sysclock_set.c
@@ -4,13 +4,6 @@
#include <skalibs/sysdeps.h>
-#ifndef SKALIBS_HASCLOCKRT
-# ifndef SKALIBS_HASSETTIMEOFDAY
-# error "neither clockrt nor settimeofday sysdeps are present. How do your set your system clock?"
-# endif
-#endif
-
-
#ifdef SKALIBS_HASCLOCKRT
#include <time.h>
@@ -27,6 +20,7 @@ int sysclock_set (tain_t const *a)
}
#else
+#ifdef SKALIBS_HASSETTIMEOFDAY
#include <skalibs/nonposix.h>
#include <sys/time.h>
@@ -42,4 +36,9 @@ int sysclock_set (tain_t const *a)
return 1 ;
}
+#else
+
+#error "neither clockrt nor settimeofday sysdeps are present. How do your set your system clock?"
+
+#endif
#endif