LP64 + gcc4

This commit is contained in:
espie 2010-06-08 07:36:20 +00:00
parent 8aaad3a091
commit 09c425eca1
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-intel2gas_cc,v 1.1 2010/06/08 07:36:20 espie Exp $
--- intel2gas.cc.orig Tue Jun 8 09:34:27 2010
+++ intel2gas.cc Tue Jun 8 09:34:53 2010
@@ -57,7 +57,7 @@ syntaxlist_t *findSyntax(char const *name)
int counter = 0;
char* prev = 0;
while (l) {
- if (int(l->name) > 0x10000000) {
+ if (long(l->name) > 0x10000000) {
printf("Error %d, prev=%s\n", counter, prev);
break;
}

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-Client_C,v 1.1 2010/06/08 07:39:08 espie Exp $
--- Client.C.orig Tue Jun 8 09:37:03 2010
+++ Client.C Tue Jun 8 09:37:34 2010
@@ -663,7 +663,7 @@ char *Client::getProperty(Atom a)
}
-int Client::getAtomProperty(Atom a, Atom type)
+long Client::getAtomProperty(Atom a, Atom type)
{
char **p, *x;
if (getProperty_aux(display(), m_window, a, type, 1L,
@@ -673,7 +673,7 @@ int Client::getAtomProperty(Atom a, Atom type)
x = *p;
XFree((void *)p);
- return (int)x;
+ return (long)x;
}

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Client_h,v 1.1 2010/06/08 07:39:08 espie Exp $
--- Client.h.orig Tue Jun 8 09:37:46 2010
+++ Client.h Tue Jun 8 09:37:54 2010
@@ -184,7 +184,7 @@ class Client { (private)
WindowManager *const m_windowManager;
char *getProperty(Atom);
- int getAtomProperty(Atom, Atom);
+ long getAtomProperty(Atom, Atom);
int getIntegerProperty(Atom);
// accessors