Browse Source

gdb: fixed legacy_sus.patch to include time.h for nanosleep

Note:

error: implicit declaration of function 'nanosleep' [-Werror=implicit-function-declaration]
user/karasz/firmware
Christian Wiese 12 years ago
parent
commit
075d5697ee
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      develop/gdb/legacy_sus.patch

+ 10
- 2
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 <time.h> /* for nanosleep */
#ifndef SPUFS_MAGIC
#define SPUFS_MAGIC 0x23c9b64e
@@ -841,7 +842,8 @@
"LCFF: no VFORK_DONE "
"support, sleeping a bit\n");

Loading…
Cancel
Save