Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
compat-util: add _DEFAULT_SOURCE define
author
Sergey Senozhatsky
<sergey.senozhatsky@gmail.com>
Sun, 14 Sep 2014 05:33:35 +0000
(14:33 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 15 Sep 2014 19:02:43 +0000
(12:02 -0700)
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>
git-compat-util.h
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
96db324
)
diff --git
a/git-compat-util.h
b/git-compat-util.h
index f587749b7cf6a74be376792eb0ad70b7e5e4f597..fd165884f29d2c6d04a23cd2386eeafd6437f126 100644
(file)
--- 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 _ALL_SOURCE 1
#define _GNU_SOURCE 1
#define _BSD_SOURCE 1
+#define _DEFAULT_SOURCE 1
#define _NETBSD_SOURCE 1
#define _SGI_SOURCE 1
#define _NETBSD_SOURCE 1
#define _SGI_SOURCE 1