HomePhabricator

chg: define _GNU_SOURCE to allow CentOS 5 compilation

Authored by Mathiasdm.

Description

chg: define _GNU_SOURCE to allow CentOS 5 compilation

Without this flag, compilation fails with:
hgclient.c: In function 'hgc_open':
hgclient.c:466: error: 'O_DIRECTORY' undeclared (first use in this function)
hgclient.c:466: error: (Each undeclared identifier is reported only once
hgclient.c:466: error: for each function it appears in.)

Differential Revision: https://phab.mercurial-scm.org/D260

Details

Committed
MathiasdmAug 7 2017, 7:40 AM
Differential Revision
D260: chg: define _GNU_SOURCE to allow CentOS 5 compilation
Parents
rHGaa7a3f6e3729: centos5: use vault urls
Branches
Unknown
Tags
Unknown