1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

- fix build error on 5.x

PR:		ports/81107
Submitted by:	chinsan <chinsan@mail2000dotcom.tw>
This commit is contained in:
Vanilla I. Shu 2005-05-16 16:06:29 +00:00
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

View File

@ -7,6 +7,7 @@
PORTNAME= big5con
PORTVERSION= 0.92h
PORTREVISION= 1
CATEGORIES= chinese
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

View 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)

View 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