FreeBSD Bugzilla – Attachment 53616 Details for
Bug 81107
[PATCH] chinese/big5con: fix build error on 5.x
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
big5con.patch
big5con.patch (text/plain), 2.10 KB, created by
chinsan
on 2005-05-16 13:50:07 UTC
(
hide
)
Description:
big5con.patch
Filename:
MIME Type:
Creator:
chinsan
Created:
2005-05-16 13:50:07 UTC
Size:
2.10 KB
patch
obsolete
>diff -ruN big5con.orig/Makefile big5con/Makefile >--- big5con.orig/Makefile Mon May 16 13:47:56 2005 >+++ big5con/Makefile Mon May 16 13:49:58 2005 >@@ -7,6 +7,7 @@ > > PORTNAME= big5con > PORTVERSION= 0.92h >+PORTREVISION= 1 > CATEGORIES= chinese > MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} > MASTER_SITE_SUBDIR= ${PORTNAME} >diff -ruN big5con.orig/files/patch-src-fnld.c big5con/files/patch-src-fnld.c >--- big5con.orig/files/patch-src-fnld.c Thu Jan 1 08:00:00 1970 >+++ big5con/files/patch-src-fnld.c Mon May 16 14:05:30 2005 >@@ -0,0 +1,11 @@ >+--- src/fnld.c.orig Mon May 16 14:04:51 2005 >++++ src/fnld.c Mon May 16 14:04:51 2005 >+@@ -21,7 +21,7 @@ >+ >+ struct fontRegs *dbFReg, *sbFReg; >+ >+-u_char *GetShmem(); >++u_char *GetShmem(char); >+ >+ void >+ FontDetach(bool down) >diff -ruN big5con.orig/files/patch-src-vc.c big5con/files/patch-src-vc.c >--- big5con.orig/files/patch-src-vc.c Thu Jan 1 08:00:00 1970 >+++ big5con/files/patch-src-vc.c Mon May 16 13:49:38 2005 >@@ -0,0 +1,42 @@ >+--- src/vc.c.orig Mon May 16 13:33:11 2005 >++++ src/vc.c Mon May 16 13:33:11 2005 >+@@ -60,28 +60,23 @@ >+ inline void >+ blatch(void *head, int n) >+ { >+- >+- __asm__ volatile ("\t clc\n" >+- "1:\n" >+- "\t andb %%bl, (%%eax)\n" >+- "\t incl %%eax\n" >+- "\t loop 1b\n" >+- : "=bl" (head), "=c"(n) >+- : "eax"((long)head), "0"(0x7F), "1"(n)); >++ char *tmp = (char *)head; >++ do { >++ *tmp &= 0x7f; >++ tmp++; >++ } while( --n ); >+ } >+ >+ static >+ inline void >+ llatch(void *head, int n) >+ { >+- >+- __asm__ volatile ("\t clc\n" >+- "1:\n" >+- "\t andl %%ebx, (%%eax)\n" >+- "\t addl $4, %%eax\n" >+- "\t loop 1b\n" >+- : "=ebx" (head), "=c"(n) >+- : "eax"((long)head), "0"(0x7F7F7F7F), "1"(n >> 2)); >++ int *tmp = (int *)head; >++ n /= 4; >++ do { >++ *tmp &= 0x7f7f7f7f; >++ tmp++; >++ } while( --n ); >+ } >+ >+ static inline u_int
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 81107
: 53616