From 075d5697eedc8f270896eacb54a0771002b43b57 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Sun, 5 Aug 2012 16:18:42 +0200 Subject: [PATCH] gdb: fixed legacy_sus.patch to include time.h for nanosleep Note: error: implicit declaration of function 'nanosleep' [-Werror=implicit-function-declaration] --- develop/gdb/legacy_sus.patch | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/develop/gdb/legacy_sus.patch b/develop/gdb/legacy_sus.patch index 614d9aa3b..15a7c582b 100644 --- a/develop/gdb/legacy_sus.patch +++ b/develop/gdb/legacy_sus.patch @@ -2,7 +2,7 @@ # This copyright note is auto-generated by ./scripts/Create-CopyPatch. # # Filename: package/.../gdb/legacy_sus.patch -# Copyright (C) 2010 - 2011 The OpenSDE Project +# Copyright (C) 2010 - 2012 The OpenSDE Project # # More information can be found in the files COPYING and README. # @@ -21,7 +21,15 @@ diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 44a2a21..4e70f80 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c -@@ -856,7 +856,8 @@ holding the child stopped. Try \"set detach-on-fork\" or \ +@@ -66,6 +66,7 @@ + #include "exceptions.h" + #include "linux-ptrace.h" + #include "buffer.h" ++#include /* for nanosleep */ + + #ifndef SPUFS_MAGIC + #define SPUFS_MAGIC 0x23c9b64e +@@ -841,7 +842,8 @@ "LCFF: no VFORK_DONE " "support, sleeping a bit\n");