From 08f8c13a778e6681ddd1bb929c89068e74668853 Mon Sep 17 00:00:00 2001 From: Doug Torrance Date: Wed, 30 Nov 2016 21:16:46 -0500 Subject: [PATCH] wmbiff: Add #define _GNU_SOURCE to avoid "implicit declaration" warnings. --- 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 (jtf@u880.org) to support * CRAM-MD5 */ +#define _GNU_SOURCE + #ifdef HAVE_CONFIG_H #include #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 #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 #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 #endif