summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2015-11-10 14:45:06 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2015-11-10 16:32:11 -0800
commit60997feb14d5634fc7a9b18ab3c026ba8d3a5839 (patch)
tree5dc0813f49a4d367fcaa0c5b55e333c98fa9c433 /tools/testing
parent42d4ebb42a17754d2e8344dc1aa486119671d0eb (diff)
selftests/mlock2: add missing #define _GNU_SOURCE
On glibc 2.3.6: mlock2-tests.c: In function 'seek_to_smaps_entry': mlock2-tests.c:158: warning: implicit declaration of function 'getline' According to the manpage of getline(), it needs _GNU_SOURCE before glibc 2.10. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Acked-by: Eric B Munson <emunson@akamai.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/vm/mlock2-tests.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/vm/mlock2-tests.c b/tools/testing/selftests/vm/mlock2-tests.c
index 4431994aade2..cb247219f1f7 100644
--- a/tools/testing/selftests/vm/mlock2-tests.c
+++ b/tools/testing/selftests/vm/mlock2-tests.c
@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
#include <sys/mman.h>
#include <stdint.h>
#include <stdio.h>