From 7c5ce1d91e47b9334fe696c808b593e9eb8ff03c Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 18 May 2017 12:30:05 +0300 Subject: Use configure macros instead of hardcoded defaults Signed-off-by: Dmitry V. Levin Signed-off-by: Jan Kara --- configure.ac | 5 ++++- quotasync.c | 3 ++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f79bd8a..9a90a5b 100644 --- a/configure.ac +++ b/configure.ac @@ -19,6 +19,9 @@ AM_INIT_AUTOMAKE([1.11 foreign dist-xz dist-bzip2]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) AC_LANG([C]) +AC_USE_SYSTEM_EXTENSIONS +AC_SYS_LARGEFILE + # =========================== # Find required base packages # =========================== @@ -56,7 +59,7 @@ AS_IF([test "x${prefix}" = "xNONE"], [ # ================ # Check for cflags # ================ -CFLAGS="$CFLAGS -D_GNU_SOURCE -Wall -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -fPIC" +CFLAGS="$CFLAGS -Wall -fPIC" AC_ARG_ENABLE([werror], [AS_HELP_STRING([--enable-werror], [Treat all warnings as errors, useful for development])], [enable_werror="$enableval"], diff --git a/quotasync.c b/quotasync.c index 78a63c2..80f7e9e 100644 --- a/quotasync.c +++ b/quotasync.c @@ -1,3 +1,5 @@ +#include "config.h" + #include #include #include @@ -7,7 +9,6 @@ #include #include "pot.h" -#include "config.h" #include "common.h" #include "quotasys.h" #include "quotaio.h" -- cgit v1.2.3