]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
AOSP: _GNU_SOURCE must be defined before any #include.
authorElliott Hughes <enh@google.com>
Mon, 5 Dec 2016 21:33:29 +0000 (13:33 -0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 24 May 2017 02:31:06 +0000 (22:31 -0400)
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>
contrib/android/block_range.c

index d054123a9779e1934a358faa5e33c216874aa9b7..2f951c7807681f6e8be443b031db20b1e032fa58 100644 (file)
@@ -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)