diff --git a/ChangeLog b/ChangeLog index 58717291560391a2837a6f04562269f2b9b27eef..f5b3b60e573b1c7da4dc629f328885518129e0b2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,8 @@ git HEAD Use --index-info with format specifiers instead * The thumbnail index now supports actions on the currently selected thumbnail (patch by Olof-Joachim Frahm) + * feh now supports 'make stat64=1' to access 64bit CIFS shares from 32bit + hosts (for 32 <-> 32 or 64 <-> 64 bit, this works anyways) Mon, 26 Sep 2011 09:35:41 +0200 Daniel Friesel diff --git a/README b/README index 2d3cf9c90184ad322ebd5364e1ce74b968b22148..5b48c660dcf44d6ce2620f20328e2651f8ea2c21 100644 --- a/README +++ b/README @@ -40,7 +40,8 @@ Available flags are: * curl (default 1) - use libcurl to view http:// and similar images * debug (default 0) - debug build, enables --debug * help (default 0) - include help text (refers to the manpage otherwise) - * xinerama (default 1) - Support Xinerama multiscreen setups + * stat64 (default 0) - Support CIFS shares from 64bit hosts on 32bit machines + * xinerama (default 1) - Support Xinerama/XRandR multiscreen setups So, by default libcurl and Xinerama are enabled, while debug is disabled. diff --git a/config.mk b/config.mk index 9c366deb9553f623cc7b9818e7a2e0cb11ae7f14..f6d403122f707b16c9c2ebbb89a348f8efadb9b1 100644 --- a/config.mk +++ b/config.mk @@ -41,6 +41,10 @@ ifeq (${help},1) CFLAGS += -DINCLUDE_HELP endif +ifeq (${stat64},1) + CFLAGS += -D_FILE_OFFSET_BITS=64 +endif + ifeq (${xinerama},1) CFLAGS += -DHAVE_LIBXINERAMA LDLIBS += -lXinerama diff --git a/src/filelist.c b/src/filelist.c index 177711c2d37c6a7b742674fca042a4a793e9f1ff..050246eb2af95eb0e975577e22873fe5d329ea20 100644 --- a/src/filelist.c +++ b/src/filelist.c @@ -172,6 +172,10 @@ void add_file_to_filelist_recursively(char *origpath, unsigned char level) if (!opt.quiet) weprintf("you don't have permission to open %s - skipping", path); break; + case EOVERFLOW: + weprintf("Cannot open %s - EOVERFLOW.\n" + "Recompile with stat64=1 to fix this"); + break; default: if (!opt.quiet) weprintf("couldn't open %s", path);