Patchwork D260: chg: define _GNU_SOURCE to allow CentOS 5 compilation

login
register
mail settings
Submitter phabricator
Date Aug. 8, 2017, 1:06 p.m.
Message ID <80816d0cd314e26827ef6352b236ab4d@localhost.localdomain>
Download mbox | patch
Permalink /patch/22745/
State Not Applicable
Headers show

Comments

phabricator - Aug. 8, 2017, 1:06 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5544af862286: chg: define _GNU_SOURCE to allow CentOS 5 compilation (authored by Mathiasdm).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D260?vs=605&id=625

REVISION DETAIL
  https://phab.mercurial-scm.org/D260

AFFECTED FILES
  contrib/chg/Makefile

CHANGE DETAILS




To: Mathiasdm, #hg-reviewers, yuja
Cc: yuja, quark, mercurial-devel

Patch

diff --git a/contrib/chg/Makefile b/contrib/chg/Makefile
--- a/contrib/chg/Makefile
+++ b/contrib/chg/Makefile
@@ -5,7 +5,7 @@ 
 OBJS = $(SRCS:.c=.o)
 
 CFLAGS ?= -O2 -Wall -Wextra -pedantic -g
-CPPFLAGS ?= -D_FORTIFY_SOURCE=2
+CPPFLAGS ?= -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE
 override CFLAGS += -std=gnu99
 ifdef HGPATH
 override CPPFLAGS += -DHGPATH=\"$(HGPATH)\"