openbsd-ports/devel/mspdebug/patches/patch-elf32_c
jasper 628f7cd63a import mspdebug 0.10
MSPDebug is a free debugger for use with MSP430 MCUs. It supports
FET430UIF, eZ430, RF2500 and Olimex MSP-JTAG-TINY programmers. It can be
used as a proxy for gdb or as an independent debugger with support for
programming, disassembly and reverse engineering.

With a patch from jakemsr@ to work around a ugen/libusb issue where
usb_bulk_read return 0 on timeout, which isn't deal with properly.

ok ajacoutot@
2010-12-02 10:35:04 +00:00

13 lines
338 B
Plaintext

$OpenBSD: patch-elf32_c,v 1.1.1.1 2010/12/02 10:35:04 jasper Exp $
--- elf32.c.orig Wed Aug 4 04:08:43 2010
+++ elf32.c Thu Aug 12 12:51:04 2010
@@ -19,7 +19,7 @@
#include <stdlib.h>
#include <errno.h>
#include <string.h>
-#ifdef __APPLE__
+#if defined(__APPLE__) || defined(__OpenBSD__)
#include <libelf.h>
#else
#include <elf.h>