Fixed programming mistakes, detected by cppcheck.
[mmh] / sbr / dtimep.lex
index a353393..133a9ab 100644 (file)
@@ -143,16 +143,10 @@ static int day_map[] = {
 #define SKIPTOSP()  { while ( !isspace(*cp++) ) ; --cp; }
 
 #ifdef ADJUST_NUMERIC_ONLY_TZ_OFFSETS_WRT_DST
-# ifdef TIME_WITH_SYS_TIME
+# ifdef HAVE_SYS_TIME_H
 #  include <sys/time.h>
-#  include <time.h>
-# else
-#  ifdef HAVE_SYS_TIME_H
-#   include <sys/time.h>
-#  else
-#   include <time.h>
-#  endif
 # endif
+#include <time.h>
 
 static void
 zonehack (struct tws *tw)