summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
-rw-r--r--quotasync.c3
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"