commit def2f97048d39f24c4938a0ef92b6294480482c2 from: Thomas Adam date: Tue Sep 28 16:38:26 2021 UTC portable: tog: add back _XOPEN_SOURCE_EXTENDED As with OpenBSD, FreeBSD requires that _XOPEN_SOURCE_EXTENDED is defined before including , otherwise things break. On other systems (Linux), _XOPEN_SOURCE_EXTENDED is already defined, so leaving that declared unconditionally throws an error. Keep the definition, but only include it on !Linux systems. Issue reported by Christian "naddy" Weisgerber commit - 9066d26dc49e33d9c6540c2a8f7880a98a1bc358 commit + def2f97048d39f24c4938a0ef92b6294480482c2 blob - dc7046265930c91fe7370ec5e4560cc5e11e663a blob + 3e9e90f6b382d2b217417f4f229183da2df159b5 --- tog/tog.c +++ tog/tog.c @@ -19,6 +19,9 @@ #include #include +#if defined(__FreeBSD__) +#define _XOPEN_SOURCE_EXTENDED /* for ncurses wide-character functions */ +#endif #include #include #include