summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorSergey Senozhatsky <sergey.senozhatsky@gmail.com>2014-09-14 05:33:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-09-15 19:02:43 (GMT)
commitf978a99faf5e657c6292d66aa4c237c934c8f883 (patch)
tree0a6a4574f7a055c1a103291b8d1e4db984567947 /git-compat-util.h
parent96db324a73fdada6fbe7b63221986f8f18cc63b0 (diff)
downloadgit-f978a99faf5e657c6292d66aa4c237c934c8f883.zip
git-f978a99faf5e657c6292d66aa4c237c934c8f883.tar.gz
git-f978a99faf5e657c6292d66aa4c237c934c8f883.tar.bz2
compat-util: add _DEFAULT_SOURCE define
glibc has deprecated the use of _BSD_SOURCE define warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" To make it easier to maintain a cross platform source code, that warning can be suppressed by _DEFAULT_SOURCE. Define both _BSD_SOURCE and _DEFAULT_SOURCE to clean-up the build. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index f587749..fd16588 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -82,6 +82,7 @@
#define _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _BSD_SOURCE 1
+#define _DEFAULT_SOURCE 1
#define _NETBSD_SOURCE 1
#define _SGI_SOURCE 1