diff options
author | Darren Tucker <dtucker@zip.com.au> | 2013-03-22 12:51:09 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2013-03-22 12:51:09 +1100 |
commit | 221b4b2436ac78a65c3b775c25ccd396a1fed208 (patch) | |
tree | 430402b1d4b760da62f9d16a066c68bd94d54d14 | |
parent | c8a0f27c6d761d1335d13ed84d773e9ddf1d95c8 (diff) | |
download | openssh-git-221b4b2436ac78a65c3b775c25ccd396a1fed208.tar.gz |
- (dtucker) [includes.h] Check if _GNU_SOURCE is already defined before
defining it again. Prevents warnings if someone, eg, sets it in CFLAGS.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | includes.h | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -3,6 +3,8 @@ Hands' greatly revised version. - (djm) Release 6.2p1 - (dtucker) [configure.ac] Add stdlib.h to zlib check for exit() prototype. + - (dtucker) [includes.h] Check if _GNU_SOURCE is already defined before + defining it again. Prevents warnings if someone, eg, sets it in CFLAGS. 20120318 - (djm) [configure.ac log.c scp.c sshconnect2.c openbsd-compat/vis.c] @@ -18,7 +18,9 @@ #include "config.h" +#ifndef _GNU_SOURCE #define _GNU_SOURCE /* activate extra prototypes for glibc */ +#endif #include <sys/types.h> #include <sys/socket.h> /* For CMSG_* */ |