diff options
author | dtucker <dtucker> | 2013-03-22 01:51:09 +0000 |
---|---|---|
committer | dtucker <dtucker> | 2013-03-22 01:51:09 +0000 |
commit | c63007022256d61c43c6ed26649efdb543662b9f (patch) | |
tree | 1804020ef1681de7e04f88fceaba8dd90eb8db8b | |
parent | d3b5c85fc68d1fab437e54d863eef9d95a815c5b (diff) | |
download | openssh-c63007022256d61c43c6ed26649efdb543662b9f.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_* */ |