summaryrefslogtreecommitdiffstats
path: root/rfc822
diff options
context:
space:
mode:
authorSam Varshavchik2021-05-21 21:11:51 -0400
committerSam Varshavchik2021-05-21 21:11:51 -0400
commit142f42378608e593eb36ceb33895db99948427aa (patch)
treefc089285268a8fe3c8768cd7482fb50393f49354 /rfc822
parent34b6dbb743654fdb6edccf101c4da7e671b7a92d (diff)
downloadcourier-libs-142f42378608e593eb36ceb33895db99948427aa.tar.bz2
-Wall and -Werror fixes
Diffstat (limited to 'rfc822')
-rw-r--r--rfc822/configure.ac9
1 files changed, 6 insertions, 3 deletions
diff --git a/rfc822/configure.ac b/rfc822/configure.ac
index 82dbdfa..a8d7efd 100644
--- a/rfc822/configure.ac
+++ b/rfc822/configure.ac
@@ -64,22 +64,25 @@ AC_CACHE_CHECK([how to calculate alternate timezone],librfc822_cv_SYS_TIMEZONE,
AC_TRY_COMPILE([
#include <time.h>
+time_t t;
],[
-time_t t=altzone;
+t=altzone;
], librfc822_cv_SYS_TIMEZONE=altzone,
AC_TRY_COMPILE([
#include <time.h>
+int n;
],[
-int n=daylight;
+ n=daylight;
], librfc822_cv_SYS_TIMEZONE=daylight,
AC_TRY_COMPILE([
#include <time.h>
extern struct tm dummy;
+long n;
],[
-long n=dummy.tm_gmtoff;
+ n=dummy.tm_gmtoff;
] ,librfc822_cv_SYS_TIMEZONE=tm_gmtoff,
librfc822_cv_SYS_TIMEZONE=unknown
)