On Sun, Sep 18, 2011 at 10:20:55PM +0200, Axel Rau wrote:
> Am 18.09.2011 um 22:13 schrieb Hannes von Haugwitz:
> > Please provide the configure log for this build.

Please try the attached patch and report back if it fixes the issue.

Greetings

Hannes
diff --git a/include/aide.h b/include/aide.h
index c38dca8..82cdd5a 100644
--- a/include/aide.h
+++ b/include/aide.h
@@ -68,7 +68,7 @@ int snprintf(char *str,size_t count,const char *fmt,...);
 # define HAVE_STRTOIMAX
 #endif
 
-#if SIZEOF_OFF64_T == SIZEOF_LONG_LONG
+#if AIDE_OFF_TYPE == off64_t && SIZEOF_OFF64_T == SIZEOF_LONG_LONG || AIDE_OFF_TYPE == off_t && SIZEOF_OFF_T == SIZEOF_LONG_LONG
 # ifdef HAVE_STRTOLL
 #  define AIDE_STRTOLL_FUNC strtoll
 # else
diff --git a/src/db_file.c b/src/db_file.c
index e8bcee8..f2baff7 100644
--- a/src/db_file.c
+++ b/src/db_file.c
@@ -666,7 +666,7 @@ int db_writelong(AIDE_OFF_TYPE i,FILE* file,int a)
     dofprintf(" ");
   }
   
-#if SIZEOF_OFF64_T == SIZEOF_LONG_LONG
+#if AIDE_OFF_TYPE == off64_t && SIZEOF_OFF64_T == SIZEOF_LONG_LONG || AIDE_OFF_TYPE == off_t && SIZEOF_OFF_T == SIZEOF_LONG_LONG
   return dofprintf("%lli",(long long)i);
 #else
   return dofprintf("%li",i);
_______________________________________________
Aide mailing list
Aide@cs.tut.fi
https://mailman.cs.tut.fi/mailman/listinfo/aide

Reply via email to