From 5bc64e25ae4eb2f84897bc0345035d178369ef99 Mon Sep 17 00:00:00 2001 From: Přemysl Janouch Date: Mon, 17 Jul 2017 23:11:13 +0200 Subject: Fix build on not-my-setup --- sdn.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdn.cpp b/sdn.cpp index 1ba094e..7942f0a 100644 --- a/sdn.cpp +++ b/sdn.cpp @@ -16,6 +16,9 @@ // CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // +// May be required for ncursesw and we generally want it all anyway +#define _XOPEN_SOURCE_EXTENDED + #include #include #include @@ -271,7 +274,7 @@ struct row { struct entry { // TODO: how to present symlink target, stat of the target? // unique_ptr target; struct stat target_info; - string filename; struct stat info; row row; + string filename; struct stat info; struct row row; auto operator< (const entry &other) -> bool { auto a = S_ISDIR (info.st_mode); auto b = S_ISDIR (other.info.st_mode); -- cgit v1.2.3-70-g09d2