ncls: don't use AT_NO_AUTOMOUNT on freebsd

dankamongmen/ltr
nick black 4 years ago
parent 564fcafee3
commit 838280ce6b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -7,6 +7,9 @@
#include <filesystem> #include <filesystem>
#include <sys/types.h> #include <sys/types.h>
#include <ncpp/Direct.hh> #include <ncpp/Direct.hh>
#ifndef __linux__
#define AT_NO_AUTOMOUNT 0x800 // not defined on freebsd, harmless to pass
#endif
static void static void
usage(std::ostream& os, const char* name, int code){ usage(std::ostream& os, const char* name, int code){
@ -38,7 +41,7 @@ handle_inode(std::filesystem::path& dir, const char* p, const struct stat* st, c
(void)st; // FIXME handle symlink (dereflinks) (void)st; // FIXME handle symlink (dereflinks)
std::cout << p << std::endl; std::cout << p << std::endl;
auto s = dir / p; auto s = dir / p;
ctx.nc.render_image(s.c_str(), NCALIGN_RIGHT, NCBLIT_3x2, NCSCALE_SCALE); ctx.nc.render_image(s.c_str(), NCALIGN_RIGHT, NCBLIT_DEFAULT, NCSCALE_SCALE);
return 0; return 0;
} }

Loading…
Cancel
Save