diff --git a/lib/libalpm/be_files.c b/lib/libalpm/be_files.c index 59155cfe..793a5c63 100644 --- a/lib/libalpm/be_files.c +++ b/lib/libalpm/be_files.c @@ -27,13 +27,12 @@ #include #include #include +#include /* uintmax_t */ #include #include #include #include -#ifdef CYGWIN #include /* PATH_MAX */ -#endif /* libalpm */ #include "db.h" @@ -589,11 +588,11 @@ int _alpm_db_write(pmdb_t *db, pmpkg_t *info, pmdbinfrq_t inforeq) } if(info->builddate) { fprintf(fp, "%%BUILDDATE%%\n" - "%lu\n\n", info->builddate); + "%ju\n\n", (uintmax_t)info->builddate); } if(info->installdate) { fprintf(fp, "%%INSTALLDATE%%\n" - "%lu\n\n", info->installdate); + "%ju\n\n", (uintmax_t)info->installdate); } if(info->packager[0]) { fprintf(fp, "%%PACKAGER%%\n"