portable: tog: add back _XOPEN_SOURCE_EXTENDED
commitdef2f97048d39f24c4938a0ef92b6294480482c2
authorThomas Adam <thomas@xteddy.org>
Tue, 28 Sep 2021 16:38:26 +0000 (28 17:38 +0100)
committerThomas Adam <thomas@xteddy.org>
Tue, 28 Sep 2021 16:38:26 +0000 (28 17:38 +0100)
tree4759b23d848dff2ef3402aa6241c96ea24b5f25d
parent9066d26dc49e33d9c6540c2a8f7880a98a1bc358
portable: tog: add back _XOPEN_SOURCE_EXTENDED

As with OpenBSD, FreeBSD requires that _XOPEN_SOURCE_EXTENDED is defined
before including <ncurses.h>, 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
tog/tog.c