From 7b267d7abe43ff69be3fa94754293e3b1881e319 Mon Sep 17 00:00:00 2001
From: Sven Hoexter <sven@stormbind.net>
Date: Sun, 31 Aug 2014 16:44:17 +0200
Subject: [PATCH] Add "-D_GNU_SOURCE" unconditionally to the list of CCFLAGS,
 needed to build on kfreebsd.

---
 debian/changelog | 2 ++
 debian/rules     | 4 +---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 8b5ca89..4416f28 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ exfat-utils (1.1.0-2) unstable; urgency=low
   * Extent debian/copyright up to 2014.
   * Update debian/copyright license statement - with 1.1.0 upstream
     relicensed from GPLv3 to GPLv2 or later.
+  * Add "-D_GNU_SOURCE" unconditionally to the list of CCFLAGS, needed
+    to build on kfreebsd.
 
  -- Sven Hoexter <hoexter@debian.org>  Tue, 26 Aug 2014 08:31:26 +0200
 
diff --git a/debian/rules b/debian/rules
index 0c77679..9f7d91a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,11 +1,9 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
-
 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
-export CCFLAGS = $(CFLAGS) -Wall -std=c99
+export CCFLAGS = $(CFLAGS) -Wall -std=c99 -D_GNU_SOURCE
 
 %:
 	dh $@
-- 
2.39.5