summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-11-14 16:15:00 +0100
committerLars Wendler <polynomial-c@gentoo.org>2019-11-14 16:15:00 +0100
commitcb1f0653c45d9c4a9a855119c85a1d4bfcc9b3b2 (patch)
treebcbea5966d6fb1053a51286e9aabc0e05d87b122 /src
parentUpdating systemd unit file - haveged is commonly used with containers (diff)
downloadhaveged-cb1f0653c45d9c4a9a855119c85a1d4bfcc9b3b2.tar.xz
haveged-cb1f0653c45d9c4a9a855119c85a1d4bfcc9b3b2.zip
build: Fix compilation with --enable-threads
Previously failed with: havegetune.c:190:12: error: ‘BUILD_THREAD’ undeclared (first use in this function); did you mean ‘BUILD_THREADS’? 190 | *bp++ = BUILD_THREAD; | ^~~~~~~~~~~~ | BUILD_THREADS Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r--src/havegetune.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/havegetune.c b/src/havegetune.c
index de39c53..6f14476 100644
--- a/src/havegetune.c
+++ b/src/havegetune.c
@@ -187,7 +187,7 @@ void havege_tune( /* RETURN: none */
*bp++ = BUILD_CPUID;
#endif
#if NUMBER_CORES>1
- *bp++ = BUILD_THREAD;
+ *bp++ = BUILD_THREADS;
#endif
#ifdef ONLINE_TESTS_ENABLE
*bp++ = BUILD_OLT;