]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: fix recent build failure on unaligned archs
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2020 16:40:25 +0000 (17:40 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2020 16:40:25 +0000 (17:40 +0100)
Last commit 2c315ee ("BUG/MEDIUM: ebtree: don't set attribute packed
without unaligned access support") accidently enclosed the semicolon
in the ifdef so it will fail when HA_UNALIGNED is not set.

ebtree/ebtree.h

index 0ba42f1ba0637b913450c6d34a5c52ddb4e53531..6ac79d610854c1f245cf9b37c25c7c2c409e441d 100644 (file)
@@ -381,8 +381,9 @@ struct eb_node {
        short unsigned int pfx; /* data prefix length, always related to leaf */
 }
 #ifdef HA_UNALIGNED
-   __attribute__((packed));
+   __attribute__((packed))
 #endif
+   ;
 
 /* Return the structure of type <type> whose member <member> points to <ptr> */
 #define eb_entry(ptr, type, member) container_of(ptr, type, member)