openbsd-ports/games/xevil/patches/patch-x11_viewport_cpp
landry a6b7b3244e Add a bunch of patch chunks shamelessly stolen from FreeBSD to allow this
to build (and even run!) on gcc4 archs. While here, precise licence marker
and bump PKGNAME.
2010-06-15 19:04:05 +00:00

24 lines
841 B
Plaintext

$OpenBSD: patch-x11_viewport_cpp,v 1.2 2010/06/15 19:04:05 landry Exp $
--- x11/viewport.cpp.orig Wed Jan 19 12:54:14 2000
+++ x11/viewport.cpp Tue Jun 15 20:49:44 2010
@@ -44,8 +44,9 @@ extern "C" {
#include <X11/Xos.h>
#include <X11/keysym.h>
}
-#include <strstream.h>
+#include <strstream>
+using namespace std;
#define TICK_BORDER_WIDTH 5 // border width big enough for a tick mark.
#define TICK_WIDTH 3
@@ -1632,7 +1633,7 @@ void Viewport::panel_callback(Panel* panel,void* value
// Would be much better to put the radio-button logic in the Panel classes.
if (pClosure->radio) {
// SGI compiler says you can't cast void* to Boolean.
- Boolean bValue = (Boolean)(int)value;
+ Boolean bValue = (Boolean)(intptr_t)value;
if (!bValue) {
((TogglePanel*)panel)->set_value(True);
}