- fix build error on 5.x
PR: ports/81107 Submitted by: chinsan <chinsan@mail2000dotcom.tw>
This commit is contained in:
parent
563f62c5c7
commit
e9b46b3623
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135375
3 changed files with 54 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
PORTNAME= big5con
|
||||
PORTVERSION= 0.92h
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= chinese
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
||||
MASTER_SITE_SUBDIR= ${PORTNAME}
|
||||
|
|
11
chinese/big5con/files/patch-src-fnld.c
Normal file
11
chinese/big5con/files/patch-src-fnld.c
Normal file
|
@ -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)
|
42
chinese/big5con/files/patch-src-vc.c
Normal file
42
chinese/big5con/files/patch-src-vc.c
Normal file
|
@ -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
|
Loading…
Reference in a new issue