diff options
author | vanilla <vanilla@FreeBSD.org> | 2005-05-17 00:06:29 +0800 |
---|---|---|
committer | vanilla <vanilla@FreeBSD.org> | 2005-05-17 00:06:29 +0800 |
commit | 3f2c967ae7272f03322440ab33038a22a0391cca (patch) | |
tree | 3a24e6ea90c83b6103de023344887c6eb61bede9 /chinese/big5con/files | |
parent | 1ce2a1f6932c730a29fcdd4d4108a075676f9e0d (diff) | |
download | freebsd-ports-gnome-3f2c967ae7272f03322440ab33038a22a0391cca.tar.gz freebsd-ports-gnome-3f2c967ae7272f03322440ab33038a22a0391cca.tar.zst freebsd-ports-gnome-3f2c967ae7272f03322440ab33038a22a0391cca.zip |
- fix build error on 5.x
PR: ports/81107
Submitted by: chinsan <chinsan@mail2000dotcom.tw>
Diffstat (limited to 'chinese/big5con/files')
-rw-r--r-- | chinese/big5con/files/patch-src-fnld.c | 11 | ||||
-rw-r--r-- | chinese/big5con/files/patch-src-vc.c | 42 |
2 files changed, 53 insertions, 0 deletions
diff --git a/chinese/big5con/files/patch-src-fnld.c b/chinese/big5con/files/patch-src-fnld.c new file mode 100644 index 000000000000..3c48163855b9 --- /dev/null +++ b/chinese/big5con/files/patch-src-fnld.c @@ -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 --git a/chinese/big5con/files/patch-src-vc.c b/chinese/big5con/files/patch-src-vc.c new file mode 100644 index 000000000000..a9c54d724aab --- /dev/null +++ b/chinese/big5con/files/patch-src-vc.c @@ -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 |