[BACK]Return to patch-ae CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / caml-light / patches

File: [cvs.NetBSD.org] / pkgsrc / lang / caml-light / patches / patch-ae (download)

Revision 1.2, Sat Oct 20 22:11:30 2012 UTC (7 years, 11 months ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, HEAD
Changes since 1.1: +10 -1 lines

Return without value iff the function has a return type of void.

$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) {