[PATCH 2/3] wmbiff: Add #define _GNU_SOURCE to avoid "implicit declaration" warnings.

Doug Torrance <[email protected]>
Newsgroups gmane.compw.window-managers.windowmaker.devel
Message-ID <[email protected]>
---
 wmbiff/wmbiff/Imap4Client.c | 2 ++
 wmbiff/wmbiff/ShellClient.c | 2 ++
 wmbiff/wmbiff/passwordMgr.c | 2 ++
 wmbiff/wmbiff/test_wmbiff.c | 2 ++
 4 files changed, 8 insertions(+)

diff --git a/wmbiff/wmbiff/Imap4Client.c b/wmbiff/wmbiff/Imap4Client.c
index ba12a66..ec0f7b3 100644
--- a/wmbiff/wmbiff/Imap4Client.c
+++ b/wmbiff/wmbiff/Imap4Client.c
@@ -7,6 +7,8 @@
  * modified by Jay Francis ([email protected]) to support
  * CRAM-MD5 */
 
+#define _GNU_SOURCE
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
diff --git a/wmbiff/wmbiff/ShellClient.c b/wmbiff/wmbiff/ShellClient.c
index 8c66471..1519ecb 100644
--- a/wmbiff/wmbiff/ShellClient.c
+++ b/wmbiff/wmbiff/ShellClient.c
@@ -8,6 +8,8 @@
  *
  */
 
+#define _GNU_SOURCE
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
diff --git a/wmbiff/wmbiff/passwordMgr.c b/wmbiff/wmbiff/passwordMgr.c
index 28b6e30..42c1657 100644
--- a/wmbiff/wmbiff/passwordMgr.c
+++ b/wmbiff/wmbiff/passwordMgr.c
@@ -21,6 +21,8 @@
    again. This might be poor if the askpass program is
    replaced with something non-interactive. */
 
+#define _GNU_SOURCE
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
diff --git a/wmbiff/wmbiff/test_wmbiff.c b/wmbiff/wmbiff/test_wmbiff.c
index 8e090cc..d975ce5 100644
--- a/wmbiff/wmbiff/test_wmbiff.c
+++ b/wmbiff/wmbiff/test_wmbiff.c
@@ -1,3 +1,5 @@
+#define _GNU_SOURCE
+
 #ifdef HAVE_CONFIG_H
 #include <config.h>
 #endif
-- 
2.7.4


-- 
To unsubscribe, send mail to [email protected].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.