Include <utime.h> where needed instead of system.h
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Dec 2009 12:19:54 +0000 (14:19 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Wed, 23 Dec 2009 12:19:54 +0000 (14:19 +0200)
- include unconditionally as we dont try to deal with utime() missing

lib/fsm.c
lib/rpmdb.c
system.h

index fe6b9e5..bfa14be 100644 (file)
--- a/lib/fsm.c
+++ b/lib/fsm.c
@@ -5,6 +5,7 @@
 
 #include "system.h"
 
+#include <utime.h>
 #include <rpm/rpmte.h>
 #include <rpm/rpmts.h>
 #include <rpm/rpmsq.h>
index 2f84631..526ccec 100644 (file)
@@ -7,6 +7,7 @@
 #define        _USE_COPY_LOAD  /* XXX don't use DB_DBT_MALLOC (yet) */
 
 #include <sys/file.h>
+#include <utime.h>
 
 #ifndef        DYING   /* XXX already in "system.h" */
 #include <fnmatch.h>
index 83f3587..bb40b8d 100644 (file)
--- a/system.h
+++ b/system.h
@@ -43,10 +43,6 @@ extern char ** environ;
 # endif
 #endif
 
-#ifdef HAVE_UTIME_H
-#include <utime.h>
-#endif
-
 #ifdef HAVE_STRING_H
 # if !STDC_HEADERS && HAVE_MEMORY_H
 #  include <memory.h>