summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Hommel <wolfgang.hommel@unibw.de>2019-12-14 19:49:04 +0100
committerWolfgang Hommel <wolfgang.hommel@unibw.de>2019-12-14 19:49:04 +0100
commit90f11685b5c46f0b1b48d9aaa7e70172e4a2c44e (patch)
treec835af5c0fc96ae0e571971a3dcc561d67a0196e
parentd7ef17a0de2d06a33e485936f2794f1f378980a1 (diff)
downloadlibfaketime-90f11685b5c46f0b1b48d9aaa7e70172e4a2c44e.tar.gz
wrap nanosec ops in #ifndef, patch by @paul-j-lucas, #219
-rw-r--r--src/time_ops.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/time_ops.h b/src/time_ops.h
index 59ab1ee..057cd48 100644
--- a/src/time_ops.h
+++ b/src/time_ops.h
@@ -94,11 +94,23 @@
#endif
/* ops for nanosecs */
+#ifndef timespecisset
#define timespecisset(tvp) timerisset2(tvp,n)
+#endif
+#ifndef timespecclear
#define timespecclear(tvp) timerclear2(tvp, n)
+#endif
+#ifndef timespeccmp
#define timespeccmp(a, b, CMP) timercmp2(a, b, CMP, n)
+#endif
+#ifndef timespecadd
#define timespecadd(a, b, result) timeradd2(a, b, result, n)
+#endif
+#ifndef timespecsub
#define timespecsub(a, b, result) timersub2(a, b, result, n)
+#endif
+#ifndef timespecmul
#define timespecmul(a, c, result) timermul2(a, c, result, n)
+#endif
#endif