summaryrefslogtreecommitdiff
path: root/sdn.cpp
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2017-07-17 23:11:13 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2017-07-17 23:11:13 +0200
commit5bc64e25ae4eb2f84897bc0345035d178369ef99 (patch)
tree37323073e6d67c8f2371bc708bc85074be00bf6f /sdn.cpp
parent0cf63744a754b1c03efc50f53cbfc13fa53a2d77 (diff)
downloadsdn-5bc64e25ae4eb2f84897bc0345035d178369ef99.tar.gz
sdn-5bc64e25ae4eb2f84897bc0345035d178369ef99.tar.xz
sdn-5bc64e25ae4eb2f84897bc0345035d178369ef99.zip
Fix build on not-my-setup
Diffstat (limited to 'sdn.cpp')
-rw-r--r--sdn.cpp5
1 files changed, 4 insertions, 1 deletions
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 <string>
#include <vector>
#include <locale>
@@ -271,7 +274,7 @@ struct row {
struct entry {
// TODO: how to present symlink target, stat of the target?
// unique_ptr<string> 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);