]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Define _GNU_SOURCE for access to CLONE_XXX flags with gibc 2.14 headers.
authorTom Hughes <tom@compton.nu>
Tue, 7 Jun 2011 22:53:21 +0000 (22:53 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 7 Jun 2011 22:53:21 +0000 (22:53 +0000)
Based on patch from Dmitry Djachenko <dimhen@gmail.com>.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11802

memcheck/tests/linux/stack_switch.c
memcheck/tests/x86-linux/scalar.c
memcheck/tests/x86-linux/scalar.stderr.exp

index d54870dc79954960861874bdd674dba4590e3e81..1011f75f8ebc4a4e695533ad7f47d83cbaa93c66 100644 (file)
@@ -1,5 +1,6 @@
 #define _XOPEN_SOURCE 600
 #define _BSD_SOURCE
+#define _GNU_SOURCE
 
 #include <stdio.h>
 
index 1ba7c38b88698a02c6c8870242a6a165f11186b5..2bc1fa5b3fb5ae54a9eea07a9537eee3c331e33c 100644 (file)
@@ -1,3 +1,5 @@
+#define _GNU_SOURCE
+
 #include "../../memcheck.h"
 #include "scalar.h"
 #include <unistd.h>
index a09a6d64a8bbe24e6664a7e39e637f8331aeed59..36f48eed04c2d7f27f6b10bf9252f712b3813665 100644 (file)
@@ -578,25 +578,25 @@ Syscall param sigaction(act->sa_handler) points to unaddressable byte(s)
    ...
  Address 0x........ is 0 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:28)
+   by 0x........: main (scalar.c:30)
 
 Syscall param sigaction(act->sa_mask) points to unaddressable byte(s)
    ...
  Address 0x........ is 4 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:28)
+   by 0x........: main (scalar.c:30)
 
 Syscall param sigaction(act->sa_flags) points to unaddressable byte(s)
    ...
  Address 0x........ is 8 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:28)
+   by 0x........: main (scalar.c:30)
 
 Syscall param sigaction(oldact) points to unaddressable byte(s)
    ...
  Address 0x........ is 0 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:28)
+   by 0x........: main (scalar.c:30)
 
 -----------------------------------------------------
  68:       __NR_sgetmask n/a
@@ -1228,13 +1228,13 @@ Syscall param sigprocmask(set) points to unaddressable byte(s)
    ...
  Address 0x........ is 0 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:28)
+   by 0x........: main (scalar.c:30)
 
 Syscall param sigprocmask(oldset) points to unaddressable byte(s)
    ...
  Address 0x........ is 0 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:28)
+   by 0x........: main (scalar.c:30)
 
 -----------------------------------------------------
 127:  __NR_create_module ni
@@ -1747,7 +1747,7 @@ Syscall param rt_sigaction(act->sa_handler) points to unaddressable byte(s)
    ...
  Address 0x........ is 4 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:28)
+   by 0x........: main (scalar.c:30)
 
 Syscall param rt_sigaction(act->sa_mask) points to unaddressable byte(s)
    ...
@@ -1757,13 +1757,13 @@ Syscall param rt_sigaction(act->sa_flags) points to unaddressable byte(s)
    ...
  Address 0x........ is 8 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:28)
+   by 0x........: main (scalar.c:30)
 
 Syscall param rt_sigaction(oldact) points to unaddressable byte(s)
    ...
  Address 0x........ is 4 bytes after a block of size 4 alloc'd
    at 0x........: malloc (vg_replace_malloc.c:...)
-   by 0x........: main (scalar.c:28)
+   by 0x........: main (scalar.c:30)
 
 -----------------------------------------------------
 175: __NR_rt_sigprocmask 4s 2m