Skip to content

Commit 1f29590

Browse files
committed
fix(rack): use static inline for tcp_hw_highest_rate to fix -O0 link failure
Upstream FreeBSD 15.0 declares tcp_hw_highest_rate with GNU89 `inline` (no `static`); under -O2 it is inlined away, but under -O0 (DEBUG) it emits external references with no out-of-line definition in libfstack.a, breaking example/ and app/nginx linking. Align with the same header's other inline helpers which all use `static inline`.
1 parent ae5a9f6 commit 1f29590

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

freebsd/netinet/tcp_ratelimit.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ struct tcpcb;
105105
* shows up in your sysctl tree
106106
* this can be big.
107107
*/
108-
uint64_t inline
108+
static uint64_t inline
109109
tcp_hw_highest_rate(const struct tcp_hwrate_limit_table *rle)
110110
{
111111
return (rle->ptbl->rs_rlt[rle->ptbl->rs_highest_valid].rate);

0 commit comments

Comments
 (0)