summaryrefslogtreecommitdiff
path: root/config.mk
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-09-09 21:14:35 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-09-09 21:14:35 +0200
commit6c6bb8adaaf3c4e20b5a1e5dbdc02e25b0a00e85 (patch)
tree5bf1b8a99eff573acdea55db7f29d1ef59f51b7b /config.mk
parent707892f24b6b6133f9bffc0b02ae300fbe3f6ad5 (diff)
feh_http_load_image: Use mkstemps to save image with correct suffix
This allows feh to load .gif images via libcurl, as some imlib2 versions only load gif images if the suffix is correct. It's also more convenient when using --keep-http. To achieve this, feh needs to use mkstemps. mkstemps is a non-standard extension that is available on several systems. Compile feh with "mkstemps=0" to use mkstemp instead. Closes #630
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index 5dfd7d3..35fdf4b 100644
--- a/config.mk
+++ b/config.mk
@@ -6,6 +6,7 @@ curl ?= 1
debug ?= 0
exif ?= 0
help ?= 0
+mkstemps ?= 1
verscmp ?= 1
xinerama ?= 1
@@ -63,6 +64,10 @@ ifeq (${stat64},1)
CFLAGS += -D_FILE_OFFSET_BITS=64
endif
+ifeq (${mkstemps},1)
+ CFLAGS += -DHAVE_MKSTEMPS
+endif
+
ifeq (${verscmp},1)
CFLAGS += -DHAVE_STRVERSCMP
endif