aboutsummaryrefslogtreecommitdiffstats
path: root/chinese
diff options
context:
space:
mode:
authorvanilla <vanilla@FreeBSD.org>2000-02-06 15:04:31 +0800
committervanilla <vanilla@FreeBSD.org>2000-02-06 15:04:31 +0800
commita249500012f6e6b2a46c48dbcd1f50719a29328f (patch)
tree9a2bc0a55ea199565ff171b8b2528812a3bba8f3 /chinese
parent6489f5849bf3d9470d6de93c023091856c4c4487 (diff)
downloadfreebsd-ports-gnome-a249500012f6e6b2a46c48dbcd1f50719a29328f.tar.gz
freebsd-ports-gnome-a249500012f6e6b2a46c48dbcd1f50719a29328f.tar.zst
freebsd-ports-gnome-a249500012f6e6b2a46c48dbcd1f50719a29328f.zip
Fix for 4.0-current.
Submitted by: Keith Jang (keith@freebsd.sinica.edu.tw)
Diffstat (limited to 'chinese')
-rw-r--r--chinese/big5con/files/patch-aa23
-rw-r--r--chinese/big5con/files/patch-ab15
-rw-r--r--chinese/big5con/files/patch-ac34
-rw-r--r--chinese/big5con/files/patch-ad18
-rw-r--r--chinese/big5con/files/patch-ae11
-rw-r--r--chinese/big5con/files/patch-af24
6 files changed, 125 insertions, 0 deletions
diff --git a/chinese/big5con/files/patch-aa b/chinese/big5con/files/patch-aa
new file mode 100644
index 000000000000..cb4672071bf9
--- /dev/null
+++ b/chinese/big5con/files/patch-aa
@@ -0,0 +1,23 @@
+--- src/vga.c.orig Sun Jan 26 18:05:00 1997
++++ src/vga.c Mon Jan 31 14:09:55 2000
+@@ -382,7 +382,7 @@
+ /* if (!code) return;*/
+ VgaSetColor(fc);
+ if (bc & 0x8) *(vcls - dInfo.glineByte) = 0;
+- for (x = 0;x < sbFReg->high;x ++, code ++, fm >>= 1) {
++ if (code) for (x = 0;x < sbFReg->high;x ++, code ++, fm >>= 1) {
+ if (*code) {
+ VgaOutByte(*code);
+ *gram = *gram;
+@@ -620,7 +620,11 @@
+ Perror("ioctl CONSOLE_IO_ENABLE");
+ return FAILURE;
+ }
++#if (__FreeBSD__ <= 3)
+ if ((devMem = open("/dev/vga", O_RDWR|O_NDELAY) ) < 0) {
++#else
++ if ((devMem = open("/dev/mem", O_RDWR|O_NDELAY) ) < 0) {
++#endif
+ Perror("/dev/mem");
+ return FAILURE;
+ }
diff --git a/chinese/big5con/files/patch-ab b/chinese/big5con/files/patch-ab
new file mode 100644
index 000000000000..89c19f5d9b1c
--- /dev/null
+++ b/chinese/big5con/files/patch-ab
@@ -0,0 +1,15 @@
+--- include/vga.h.orig Fri Jan 24 16:08:01 1997
++++ include/vga.h Mon Jan 31 14:13:08 2000
+@@ -59,7 +59,11 @@
+ #if defined(linux)
+ #define GRAPH_BASE 0xA0000
+ #elif defined(__FreeBSD__)
+-#define GRAPH_BASE 0x0
++# if (__FreeBSD__ <= 3)
++# define GRAPH_BASE 0x0
++# else
++# define GRAPH_BASE 0xA0000
++# endif
+ #endif
+ #define FONT_SIZE 0x2000
+
diff --git a/chinese/big5con/files/patch-ac b/chinese/big5con/files/patch-ac
new file mode 100644
index 000000000000..45875f9e1d6c
--- /dev/null
+++ b/chinese/big5con/files/patch-ac
@@ -0,0 +1,34 @@
+--- include/mem.h.old Tue Jan 25 20:16:57 2000
++++ include/mem.h Tue Jan 25 20:30:48 2000
+@@ -46,6 +46,7 @@
+ "d" ((u_short) port));
+ }
+
++#if 0
+ static inline
+ void lzero(void *head, int n)
+ {
+@@ -93,11 +94,23 @@
+ "D" ((long)head)
+ :"cx","di");
+ }
++#endif
+
+ extern u_char PortInb(u_short);
++#if 1
++#define bzero(b, len) bzero(b, len)
++#define bzero2(b, len) bzero(b, len)
++#define lzero(b, len) bzero(b, len)
++#define wzero(b, len) bzero(b, len)
++#define bmove(dst, src, len) bcopy(src, dst, len)
++#define brmove(dst, src, len) bcopy(src, dst, len)
++#define wmove(dst, src, len) bcopy(src, dst, len)
++#define lmove(dst, src, len) bcopy(src, dst, len)
++#else
+ extern void wzero(void *, int);
+ extern void wmove(void *, void *, int);
+ extern void lmove(void *, void *, int);
++#endif
+ extern void SafeFree(void **);
+
+ #endif
diff --git a/chinese/big5con/files/patch-ad b/chinese/big5con/files/patch-ad
new file mode 100644
index 000000000000..54092a895f0c
--- /dev/null
+++ b/chinese/big5con/files/patch-ad
@@ -0,0 +1,18 @@
+--- lib/mem.c.old Tue Jan 25 20:16:57 2000
++++ lib/mem.c Tue Jan 25 20:28:18 2000
+@@ -44,6 +44,7 @@
+ return(_rval);
+ }
+
++#if 0
+ void wzero(void *head, int n)
+ {
+ __asm__ ("cld\n\t"
+@@ -76,6 +77,7 @@
+ "S" ((long)src)
+ :"cx","di","si");
+ }
++#endif
+
+ void SafeFree(void **p)
+ {
diff --git a/chinese/big5con/files/patch-ae b/chinese/big5con/files/patch-ae
new file mode 100644
index 000000000000..9c5a0eb654ea
--- /dev/null
+++ b/chinese/big5con/files/patch-ae
@@ -0,0 +1,11 @@
+--- src/main.c.old Tue Jan 25 20:16:57 2000
++++ src/main.c Tue Jan 25 20:32:52 2000
+@@ -34,7 +34,7 @@
+ #include <version.h>
+ #include <term.h>
+
+-void main(int argc, const char *argv[])
++int main(int argc, const char *argv[])
+ {
+ char *p;
+
diff --git a/chinese/big5con/files/patch-af b/chinese/big5con/files/patch-af
new file mode 100644
index 000000000000..a97f08f5bf1e
--- /dev/null
+++ b/chinese/big5con/files/patch-af
@@ -0,0 +1,24 @@
+--- src/vc.c.old Tue Jan 25 20:16:57 2000
++++ src/vc.c Tue Jan 25 20:32:35 2000
+@@ -100,8 +100,8 @@
+ "\t andb %%bl, (%%eax)\n"
+ "\t incl %%eax\n"
+ "\t loop 1b\n"
+- :
+- : "eax" ((long)head), "bl" (0x7F), "c" (n)
++ : "=bl" (head), "=c" (n)
++ : "eax" ((long)head), "0" (0x7F), "1" (n)
+ : "bl", "cx" );
+ }
+
+@@ -114,8 +114,8 @@
+ "\t andl %%ebx, (%%eax)\n"
+ "\t addl $4, %%eax\n"
+ "\t loop 1b\n"
+- :
+- : "eax" ((long)head), "ebx" (0x7F7F7F7F), "c" (n>>2)
++ : "=ebx" (head), "=c" (n)
++ : "eax" ((long)head), "0" (0x7F7F7F7F), "1" (n>>2)
+ : "ebx", "cx" );
+ }
+