Skip to content

Fix 32-bit (i386) FreeBSD build

Adriaan de Groot requested to merge work/adridg/freebsd-32-bit into master

Greg V upstreamed a lot of the FreeBSD patches already, but there's one remaining corner case: 32-bit i386. There's no Elf32_SxWord defined in our 32-bit headers, so work around that. Frankly I'm not sure the Elf bits are going to work on 32-bit machines, and I don't have any (or desire to set up specific VMs) to test.

I'm conditioning this on __WORDSIZE, which works for us, but I don't know if Linux defines things similarly.

Merge request reports