openbsd-ports/emulators/vbam/patches/patch-src_common_Patch_cpp
bentley 7e27f2e3b5 Import vbam-1.8.0.1054.
VBA-M is a fork from the now inactive VisualBoy Advance project, with
goals to improve the capabilities and features of the emulator.


This is basically a replacement for emulators/vba, which is currently
broken in at least two ways:
 - emulation speed is whacked out when sndiod is running
 - gvba recently started segfaulting on startup


tweaks & oks from landry@ jasper@ edd@
2012-05-28 09:18:56 +00:00

20 lines
655 B
Plaintext

$OpenBSD: patch-src_common_Patch_cpp,v 1.1.1.1 2012/05/28 09:18:56 bentley Exp $
--- src/common/Patch.cpp.orig Mon May 14 00:26:35 2012
+++ src/common/Patch.cpp Mon May 14 00:26:59 2012
@@ -7,13 +7,13 @@
#ifdef __GNUC__
-#if defined(__APPLE__) || defined (BSD) || defined (__NetBSD__)
+#if defined(__APPLE__) || defined (BSD) || defined (__NetBSD__) || defined(__OpenBSD__)
typedef off_t __off64_t; /* off_t is 64 bits on BSD. */
#define fseeko64 fseeko
#define ftello64 ftello
#else
typedef off64_t __off64_t;
-#endif /* __APPLE__ || BSD */
+#endif /* __APPLE__ || BSD || __NetBSD__ || __OpenBSD__ */
#endif /* __GNUC__ */
#ifndef _MSC_VER