Commit Diff
- Commit:
def2f97048d39f24c4938a0ef92b6294480482c2
- From:
- Thomas Adam <thomas@xteddy.org>
- Date:
- Message:
- 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
- Actions:
- Patch | Tree
--- tog/tog.c +++ tog/tog.c @@ -19,6 +19,9 @@ #include <ctype.h> #include <errno.h> +#if defined(__FreeBSD__) +#define _XOPEN_SOURCE_EXTENDED /* for ncurses wide-character functions */ +#endif #include <curses.h> #include <panel.h> #include <locale.h>