summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2017-05-15 20:19:41 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2017-05-15 20:19:41 +0000
commit97e0a785c827577aada4a474d2616af00a7278f4 (patch)
tree2e885f6f7fda772dd6ea0bebed709d215b63a9d4
parent13a62c4ac5feb8d3bc68346eb987bd04d05e3457 (diff)
downloadskalibs-97e0a785c827577aada4a474d2616af00a7278f4.tar.xz
bugfixes: invalid clockmon detection and futimens detection
-rw-r--r--AUTHORS1
-rwxr-xr-xconfigure2
-rw-r--r--src/sysdeps/tryfutimens.c3
3 files changed, 5 insertions, 1 deletions
diff --git a/AUTHORS b/AUTHORS
index a94fde4..67b8e53 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -5,6 +5,7 @@ Contributors:
Dan J. Bernstein <djb@cr.yp.to>
William E. Baxter <web@superscript.com>
Olivier Brunel <jjk@jjacky.com>
+ Lionel Van Bemten <lionel.van_bemten@nokia.com>
Thanks to:
Jean Marot <jean.marot@skarnet.org>
diff --git a/configure b/configure
index 6adc9f6..53d5cd6 100755
--- a/configure
+++ b/configure
@@ -442,7 +442,7 @@ EOF
if $hasclock ; then
echo 'clockrt: yes' >> $sysdeps/sysdeps
echo "#define ${package_macro_name}_HASCLOCKRT" >> $sysdeps/sysdeps.h
- choose cl clockmon CLOCKMON CLOCK_MONOTONIC $clock_lib
+ choose cl clockmon CLOCKMON CLOCK_MONOTONIC $sysclock_lib
else
echo 'clockrt: no' >> $sysdeps/sysdeps
echo "#undef ${package_macro_name}_HASCLOCKRT" >> $sysdeps/sysdeps.h
diff --git a/src/sysdeps/tryfutimens.c b/src/sysdeps/tryfutimens.c
index 7ed1635..f111647 100644
--- a/src/sysdeps/tryfutimens.c
+++ b/src/sysdeps/tryfutimens.c
@@ -5,6 +5,9 @@
#ifndef __EXTENSIONS__
#define __EXTENSIONS__
#endif
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include <sys/stat.h>