summaryrefslogtreecommitdiff
path: root/includes.h
diff options
context:
space:
mode:
authordtucker <dtucker>2013-03-22 01:51:09 +0000
committerdtucker <dtucker>2013-03-22 01:51:09 +0000
commitc63007022256d61c43c6ed26649efdb543662b9f (patch)
tree1804020ef1681de7e04f88fceaba8dd90eb8db8b /includes.h
parentd3b5c85fc68d1fab437e54d863eef9d95a815c5b (diff)
downloadopenssh-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.
Diffstat (limited to 'includes.h')
-rw-r--r--includes.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes.h b/includes.h
index 3e206c89..07bcd89f 100644
--- a/includes.h
+++ b/includes.h
@@ -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_* */