blob: 60201dfa4b6351cec8c8f46e1fcee39fd6ec63a8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
$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) {
|