Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1265521 > unrolled thread
| Started by | Geert Uytterhoeven <geert@linux-m68k.org> |
|---|---|
| First post | 2015-11-09 11:20 +0100 |
| Last post | 2015-11-09 17:10 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 1/2] selftests/mlock2: Add missing #define _GNU_SOURCE Geert Uytterhoeven <geert@linux-m68k.org> - 2015-11-09 11:20 +0100
Re: [PATCH 1/2] selftests/mlock2: Add missing #define _GNU_SOURCE Eric B Munson <emunson@akamai.com> - 2015-11-09 17:10 +0100
| From | Geert Uytterhoeven <geert@linux-m68k.org> |
|---|---|
| Date | 2015-11-09 11:20 +0100 |
| Subject | [PATCH 1/2] selftests/mlock2: Add missing #define _GNU_SOURCE |
| Message-ID | <qsRIm-55g-21@gated-at.bofh.it> |
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>
---
tools/testing/selftests/vm/mlock2-tests.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/testing/selftests/vm/mlock2-tests.c b/tools/testing/selftests/vm/mlock2-tests.c
index 4431994aade2ef6f..cb247219f1f72889 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>
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Eric B Munson <emunson@akamai.com> |
|---|---|
| Date | 2015-11-09 17:10 +0100 |
| Message-ID | <qsXb4-dY-9@gated-at.bofh.it> |
| In reply to | #1265521 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, 09 Nov 2015, Geert Uytterhoeven wrote: > 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> > --- > tools/testing/selftests/vm/mlock2-tests.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/tools/testing/selftests/vm/mlock2-tests.c b/tools/testing/selftests/vm/mlock2-tests.c > index 4431994aade2ef6f..cb247219f1f72889 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> > -- > 1.9.1 >
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web