24 lines
660 B
Text
24 lines
660 B
Text
$NetBSD: patch-ae,v 1.2 2012/10/20 22:11:30 joerg Exp $
|
|
|
|
Fix 64-bit build.
|
|
|
|
--- runtime/debugcom.c~ 1997-06-27 09:59:02.000000000 -0400
|
|
+++ runtime/debugcom.c 2008-09-04 21:11:39.000000000 -0400
|
|
@@ -2,6 +2,8 @@
|
|
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
+#include <unistd.h>
|
|
+#include <arpa/inet.h> /* for inet_addr() */
|
|
#include "misc.h"
|
|
#include "debugger.h"
|
|
#include "mlvalues.h"
|
|
@@ -182,7 +184,7 @@ int debugger(event)
|
|
value val;
|
|
value * p;
|
|
|
|
- if (dbg_socket == -1) return; /* Not connected to a debugger. */
|
|
+ if (dbg_socket == -1) return -1; /* Not connected to a debugger. */
|
|
|
|
/* Report the event to the debugger */
|
|
switch(event) {
|