diff --git a/configure.ac b/configure.ac index e39186cf9..76f35011c 100644 --- a/configure.ac +++ b/configure.ac @@ -48,6 +48,10 @@ AC_CANONICAL_HOST AM_INIT_AUTOMAKE([foreign 1.6]) AM_SILENT_RULES([yes]) +# Allow 64-bit file API on 32-bit systems. Without the change even small +# files will fail to stat any files on filesystems with 64-bit inodes. +AC_SYS_LARGEFILE + DEBUG="" AC_MSG_CHECKING([for debug-enabled build]) AC_ARG_ENABLE(debug, AS_HELP_STRING([--enable-debug],[create a debug build]), diff --git a/src/swtpm_setup/swtpm_backend_dir.c b/src/swtpm_setup/swtpm_backend_dir.c index ac2c18ba9..75d57f215 100644 --- a/src/swtpm_setup/swtpm_backend_dir.c +++ b/src/swtpm_setup/swtpm_backend_dir.c @@ -6,6 +6,8 @@ * Refactored as module: Stefan Reiter, stefan@pimaker.at */ +#include "config.h" + #include #include #include