summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-12-05 13:33:29 -0800
committerTheodore Ts'o <tytso@mit.edu>2017-05-23 22:31:06 -0400
commita3d753f36f517d9fd98df5a5e51ed01361e6c997 (patch)
tree1dc56b0ef84892a6e219be2d8ce22b0098a943d8 /contrib
parente2ddfccfb6f2ffd2bdd62f55de1b5f16fc936288 (diff)
AOSP: _GNU_SOURCE must be defined before any #include.
Fixes the "asprintf undeclared" warning in this code. Bug: N/A Test: builds Change-Id: I42e1bfbdbc0391c5e5d7908204f9064ec858c84d From AOSP commit: 1ebca4b43115846af705bd320bccb8f930e328c8 Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'contrib')
-rw-r--r--contrib/android/block_range.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/android/block_range.c b/contrib/android/block_range.c
index d054123a..2f951c78 100644
--- a/contrib/android/block_range.c
+++ b/contrib/android/block_range.c
@@ -1,7 +1,6 @@
+#define _GNU_SOURCE
+
#include "block_range.h"
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
#include <stdio.h>
struct block_range *new_block_range(blk64_t start, blk64_t end)