diff options
author | Dmitry V. Levin <ldv@altlinux.org> | 2017-05-18 12:30:05 +0300 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2017-05-18 12:27:38 +0200 |
commit | 7c5ce1d91e47b9334fe696c808b593e9eb8ff03c (patch) | |
tree | 964546932922113f6a5ded55c72595e56f9abebe | |
parent | a431ffcc27b364b7cc2b280ad33873e0157e7e99 (diff) | |
download | linuxquota-7c5ce1d91e47b9334fe696c808b593e9eb8ff03c.tar.gz |
Use configure macros instead of hardcoded defaults
Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
Signed-off-by: Jan Kara <jack@suse.cz>
-rw-r--r-- | configure.ac | 5 | ||||
-rw-r--r-- | 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 <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -7,7 +9,6 @@ #include <getopt.h> #include "pot.h" -#include "config.h" #include "common.h" #include "quotasys.h" #include "quotaio.h" |