Unverified Commit 50387826 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Use the already-present HAVE_MKSTEMPS flag to guard _GNU_SOURCE definition

This ensures consistency with how strverscmp is handled
parent c35ddce9
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -4,7 +4,6 @@ VERSION ?= ${shell git describe --dirty}
app ?= 0
curl ?= 1
debug ?= 0
glibc ?= 0
exif ?= 0
help ?= 0
magic ?= 0
@@ -58,10 +57,6 @@ else
	MAN_DEBUG = .
endif

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

ifeq (${help},1)
	CFLAGS += -DINCLUDE_HELP
endif
+1 −1
Original line number Diff line number Diff line
@@ -28,7 +28,7 @@ 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
#ifdef HAVE_MKSTEMPS
#define _GNU_SOURCE
#endif