aboutsummaryrefslogtreecommitdiffstats
path: root/src/rate_limiter.h
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@inai.de>2020-01-08 11:17:41 +0100
committerJan Engelhardt <jengelh@inai.de>2020-01-08 11:17:41 +0100
commit9ad6363e9c1ee463bff7f28454283dd49d0d2e20 (patch)
tree1d2f84eadd47c959e7e2a56df94bff7c54c9df67 /src/rate_limiter.h
parentf7bb2e79d76afc3a985bb6a990a1aa51734feb6d (diff)
downloadbindfs-9ad6363e9c1ee463bff7f28454283dd49d0d2e20.tar.gz
build: fix build failure with -fno-common
$ ./configure CFLAGS=-fno-common && make ld: rate_limiter.o:(.rodata+0x0): multiple definition of "rate_limiter_idle_credit"; bindfs.o:(.rodata+0x0): first defined here References: https://bugzilla.opensuse.org/1160244
Diffstat (limited to 'src/rate_limiter.h')
-rw-r--r--src/rate_limiter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rate_limiter.h b/src/rate_limiter.h
index a332294..95c0069 100644
--- a/src/rate_limiter.h
+++ b/src/rate_limiter.h
@@ -26,7 +26,7 @@
/* When we are idle, we allow some time to be "credited" to the next writer.
* Otherwise, the short pause between requests would "go to waste", lowering
* the throughput when there is only one requester. */
-const double rate_limiter_idle_credit;
+extern const double rate_limiter_idle_credit;
typedef struct RateLimiter {
double rate; /* bytes / second */