Fix gdb.threads/watchpoint-fork*.c compilation
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.threads / watchpoint-fork-mt.c
index f603b6df69b0b2e8b7456f5d8c696c771033758e..bc967ce51028a3da0a5514b6f3082ad1f777fc41 100644 (file)
    You should have received a copy of the GNU General Public License
    along with this program; if not, see <http://www.gnu.org/licenses/>.  */
 
+#include "watchpoint-fork.h"
+
 #include <assert.h>
 #include <unistd.h>
 #include <sys/wait.h>
 #include <stdio.h>
 #include <stdlib.h>
-
-/* pthread_yield is a GNU extension.  */
-#define _GNU_SOURCE
 #include <pthread.h>
 
 #include <asm/unistd.h>
 #include <unistd.h>
 #define gettid() syscall (__NR_gettid)
 
-#include "watchpoint-fork.h"
-
 /* Non-atomic `var++' should not hurt as we synchronize the threads by the STEP
    variable.  Hit-comments need to be duplicated there to catch both at-stops
    and behind-stops, depending on the target.  */
This page took 0.024333 seconds and 4 git commands to generate.