aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2020-03-30 21:24:48 +0200
committerMatthias Andree <matthias.andree@gmx.de>2020-03-30 21:24:48 +0200
commit43b557d52f2013995bca95afaccfad95cbbc2c17 (patch)
tree5337ae4dead4440e0e73b5392ff08bc1d83d0247 /fetchmail.h
parent66a35bd6c22fc68b685fd90f0cc80a32ffc1e364 (diff)
downloadfetchmail-43b557d52f2013995bca95afaccfad95cbbc2c17.tar.gz
fetchmail-43b557d52f2013995bca95afaccfad95cbbc2c17.tar.bz2
fetchmail-43b557d52f2013995bca95afaccfad95cbbc2c17.zip
Fix HAVE_DECL_ users to check value, not definition.
All such uses in fetchmail stem from AC_CHECK_DECLS(), which will always define a HAVE_DECL_ macro with either 0 or 1, thus we must not check if that macro is defined, but we must check its value.
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fetchmail.h b/fetchmail.h
index 2db6d880..f731e159 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -724,7 +724,7 @@ void itimerthread(void*);
#endif /* _EMX_ */
#ifdef HAVE_STRERROR
-# if !defined(strerror) && !defined(HAVE_DECL_STRERROR) /* On some systems, strerror is a macro */
+# if !defined(strerror) && !HAVE_DECL_STRERROR /* On some systems, strerror is a macro */
char *strerror (int);
# endif
#endif /* HAVE_STRERROR */