Unverified Commit 2045d47a authored by Jeff Brown's avatar Jeff Brown Committed by GitHub
Browse files

Added make flag control over whether to #define _GNU_SOURCE

This is to make sure it does not conflict with other systems that are not using glibc
parents 47ac43b6 89676093
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ VERSION ?= ${shell git describe --dirty}
app ?= 0
curl ?= 1
debug ?= 0
gnu ?= 0
exif ?= 0
help ?= 0
magic ?= 0
@@ -57,6 +58,10 @@ else
	MAN_DEBUG = .
endif

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

ifeq (${help},1)
	CFLAGS += -DINCLUDE_HELP
endif
+7 −0
Original line number Diff line number Diff line
@@ -23,7 +23,14 @@ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
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"