Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > f703f6cc8228e4e780f34b02d5eed091 > files > 18

insight-6.8.1-3.fc14.src.rpm

diff -Naur insight-6.8-1.orig/gdb/event-top.c insight-6.8-1.new/gdb/event-top.c
--- insight-6.8-1.orig/gdb/event-top.c	2008-01-01 23:53:09.000000000 +0100
+++ insight-6.8-1.new/gdb/event-top.c	2010-01-13 21:06:33.000000000 +0100
@@ -20,6 +20,10 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>. */
 
+/* Enable sbrk() prototype. */
+#include <features.h>
+#undef __USE_XOPEN2K
+
 #include "defs.h"
 #include "top.h"
 #include "inferior.h"
diff -Naur insight-6.8-1.orig/gdb/main.c insight-6.8-1.new/gdb/main.c
--- insight-6.8-1.orig/gdb/main.c	2010-01-13 18:00:29.000000000 +0100
+++ insight-6.8-1.new/gdb/main.c	2010-01-13 20:52:02.000000000 +0100
@@ -19,6 +19,10 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+/* Enable sbrk() prototype. */
+#include <features.h>
+#undef __USE_XOPEN2K
+
 #include "defs.h"
 #include "top.h"
 #include "target.h"
diff -Naur insight-6.8-1.orig/gdb/top.c insight-6.8-1.new/gdb/top.c
--- insight-6.8-1.orig/gdb/top.c	2010-01-13 18:00:29.000000000 +0100
+++ insight-6.8-1.new/gdb/top.c	2010-01-13 21:08:35.000000000 +0100
@@ -19,6 +19,10 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
+/* Enable sbrk() prototype. */
+#include <features.h>
+#undef __USE_XOPEN2K
+
 #include "defs.h"
 #include "gdbcmd.h"
 #include "call-cmds.h"