Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ VERSION ?= ${shell git describe --dirty}
app ?= 0
curl ?= 1
debug ?= 0
glibc ?= 0
exif ?= 0
help ?= 0
magic ?= 0
Expand Down Expand Up @@ -57,6 +58,10 @@ else
MAN_DEBUG = .
endif

ifeq (${glibc},1)
CFLAGS += -DHAVE_GNU
endif

ifeq (${help},1)
CFLAGS += -DINCLUDE_HELP
endif
Expand Down
8 changes: 8 additions & 0 deletions src/imlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

*/

/*
* mkstemps(3) is a nonstandard extension that requires defining
* _GNU_SOURCE for glibc
*/
#ifdef HAVE_GNU
#define _GNU_SOURCE
#endif

#include "feh.h"
#include "filelist.h"
#include "signals.h"
Expand Down