summaryrefslogtreecommitdiffstats
path: root/runtime/arith.c
diff options
context:
space:
mode:
authorhunt <hunt>2005-09-09 09:20:07 +0000
committerhunt <hunt>2005-09-09 09:20:07 +0000
commit22c6c6b2b42f375d9e259e091015b768314efdaa (patch)
treebe46fa0a20448a9a5119e6ec1f13165d5008bceb /runtime/arith.c
parent1431278aba3347fdb55ec461008a07d9010aea7a (diff)
downloadsystemtap-steved-22c6c6b2b42f375d9e259e091015b768314efdaa.tar.gz
systemtap-steved-22c6c6b2b42f375d9e259e091015b768314efdaa.tar.xz
systemtap-steved-22c6c6b2b42f375d9e259e091015b768314efdaa.zip
Fix for jiffies.
Diffstat (limited to 'runtime/arith.c')
-rw-r--r--runtime/arith.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/arith.c b/runtime/arith.c
index abbac66c..19b22df4 100644
--- a/runtime/arith.c
+++ b/runtime/arith.c
@@ -82,7 +82,7 @@ int64_t _stp_mod64 (const char **error, int64_t x, int64_t y)
#endif
}
-
+#ifndef _STP_TEST_
/** Return a random integer between -n and n.
* @param n how far from zero to go. Make it positive but less than a million or so.
*/
@@ -101,6 +101,7 @@ int _stp_random_pm (int n)
return (seed % (2*n+1)-n);
}
+#endif /* _STP_TEST_ */
#ifdef __i386__