Fix build on not-my-setup

This commit is contained in:
Přemysl Eric Janouch 2017-07-17 23:11:13 +02:00
parent 0cf63744a7
commit 5bc64e25ae
Signed by: p
GPG Key ID: B715679E3A361BE6

View File

@ -16,6 +16,9 @@
// CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. // 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 <string>
#include <vector> #include <vector>
#include <locale> #include <locale>
@ -271,7 +274,7 @@ struct row {
struct entry { struct entry {
// TODO: how to present symlink target, stat of the target? // TODO: how to present symlink target, stat of the target?
// unique_ptr<string> target; struct stat target_info; // 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 operator< (const entry &other) -> bool {
auto a = S_ISDIR (info.st_mode); auto a = S_ISDIR (info.st_mode);
auto b = S_ISDIR (other.info.st_mode); auto b = S_ISDIR (other.info.st_mode);