From ad91124bcfac932140273840a2985e4ac5d5c400 Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Fri, 20 Mar 2020 11:41:24 +0100 Subject: [PATCH] BUILD/MEDIUM: fd: Declare fd_mig_lock as extern. Declare fd_mig_lock as extern so that it isn't defined multiple times. This should fix build for architectures without double-width CAS. --- include/proto/fd.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/proto/fd.h b/include/proto/fd.h index 8fa7670..9783f90 100644 --- a/include/proto/fd.h +++ b/include/proto/fd.h @@ -67,7 +67,7 @@ void fd_remove(int fd); int fd_takeover(int fd, void *expected_owner); #ifndef HA_HAVE_CAS_DW -__decl_hathreads(HA_RWLOCK_T fd_mig_lock); +__decl_hathreads(extern HA_RWLOCK_T fd_mig_lock); #endif ssize_t fd_write_frag_line(int fd, size_t maxlen, const struct ist pfx[], size_t npfx, const struct ist msg[], size_t nmsg, int nl); -- 1.7.10.4