diff options
author | kris <kris@FreeBSD.org> | 2003-07-27 17:44:00 +0800 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2003-07-27 17:44:00 +0800 |
commit | 87bdc86a346d7ebaa138584563290e68a9bb2422 (patch) | |
tree | 10a36f770222b84e64951d768cc586e94b266079 /x11-servers/XFree86-4-Server/files/patch-loader.c | |
parent | 18f8fe59aa13c4d9c0513c27ee45ae4734a6afc6 (diff) | |
download | freebsd-ports-gnome-87bdc86a346d7ebaa138584563290e68a9bb2422.tar.gz freebsd-ports-gnome-87bdc86a346d7ebaa138584563290e68a9bb2422.tar.zst freebsd-ports-gnome-87bdc86a346d7ebaa138584563290e68a9bb2422.zip |
Add support for sparc64.
Submitted by: jake (based on)
Diffstat (limited to 'x11-servers/XFree86-4-Server/files/patch-loader.c')
-rw-r--r-- | x11-servers/XFree86-4-Server/files/patch-loader.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11-servers/XFree86-4-Server/files/patch-loader.c b/x11-servers/XFree86-4-Server/files/patch-loader.c new file mode 100644 index 000000000000..23acde46016b --- /dev/null +++ b/x11-servers/XFree86-4-Server/files/patch-loader.c @@ -0,0 +1,20 @@ +--- programs/Xserver/hw/xfree86/loader/loader.c.orig Thu May 15 19:50:47 2003 ++++ programs/Xserver/hw/xfree86/loader/loader.c Thu May 15 19:51:35 2003 +@@ -88,7 +88,7 @@ + static int refCount[MAX_HANDLE] ; + #endif + +-#if defined(__sparc__) && defined(__GNUC__) ++#if defined(__sparc__) && defined(__GNUC__) && !defined(__FreeBSD__) + # define SYMFUNCDOT(func) { "." #func, (funcptr)&__sparc_dot_ ## func }, + # if !defined(__OpenBSD__) + # define SYMFUNCDOT89(func) { "." #func, (funcptr)&func ## _sparcv89 }, +@@ -298,7 +298,7 @@ + LoaderAddSymbols(-1, -1, dixLookupTab ) ; + LoaderAddSymbols(-1, -1, fontLookupTab ) ; + LoaderAddSymbols(-1, -1, extLookupTab ); +-#ifdef __sparc__ ++#if defined(__sparc__) && !defined(__FreeBSD__) + #ifdef linux + if (sparcUseHWMulDiv()) + LoaderAddSymbols(-1, -1, SparcV89LookupTab ) ; |