diff options
author | miwi <miwi@FreeBSD.org> | 2007-10-06 05:54:27 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-10-06 05:54:27 +0800 |
commit | c50b01a6cb3a4ee11ce8316eac1c7a4fb8608e0f (patch) | |
tree | a3e571bec697d90bbcd234bb48a215ebc4c55ec4 /editors/biew | |
parent | bcd30de72b96eeb8259956db809cb7a543abed1f (diff) | |
download | freebsd-ports-gnome-c50b01a6cb3a4ee11ce8316eac1c7a4fb8608e0f.tar.gz freebsd-ports-gnome-c50b01a6cb3a4ee11ce8316eac1c7a4fb8608e0f.tar.zst freebsd-ports-gnome-c50b01a6cb3a4ee11ce8316eac1c7a4fb8608e0f.zip |
- Fix build with gcc4.2
PR: 116902
Submitted by: miwi
Approved by: maintainer
Obtained from: pkgsrc
Diffstat (limited to 'editors/biew')
-rw-r--r-- | editors/biew/files/patch-biewlib-sysdep-ia16_cmn_ix86.c | 11 | ||||
-rw-r--r-- | editors/biew/files/patch-biewlib-sysdep-ia32_aclib_template.c | 33 | ||||
-rw-r--r-- | editors/biew/files/patch-biewlib_file_ini.c | 48 | ||||
-rw-r--r-- | editors/biew/files/patch-biewlib_tw_clawss.c | 10 | ||||
-rw-r--r-- | editors/biew/files/patch-biewlib_twin.c | 14 |
5 files changed, 116 insertions, 0 deletions
diff --git a/editors/biew/files/patch-biewlib-sysdep-ia16_cmn_ix86.c b/editors/biew/files/patch-biewlib-sysdep-ia16_cmn_ix86.c new file mode 100644 index 000000000000..0d50e6559a73 --- /dev/null +++ b/editors/biew/files/patch-biewlib-sysdep-ia16_cmn_ix86.c @@ -0,0 +1,11 @@ +--- biewlib/sysdep/ia16/cmn_ix86.c.orig 2003-03-27 07:19:30.000000000 +0100 ++++ biewlib/sysdep/ia16/cmn_ix86.c 2007-10-04 15:24:45.000000000 +0200 +@@ -47,7 +47,7 @@ + ctrl_arr = c_arr; + /* align pointer on 16-byte boundary */ + +- if((tUInt32)ctrl_arr & 15) ((tUInt32)ctrl_arr) += 16-((tUInt32)ctrl_arr&15); ++ if((tUInt32)ctrl_arr & 15) ctrl_arr = ((tUInt32)ctrl_arr) + 16-((tUInt32)ctrl_arr&15); + + memset(ctrl_arr,0,sizeof(ctrl_arr)); + if(time_interval) diff --git a/editors/biew/files/patch-biewlib-sysdep-ia32_aclib_template.c b/editors/biew/files/patch-biewlib-sysdep-ia32_aclib_template.c new file mode 100644 index 000000000000..e58a58796bd7 --- /dev/null +++ b/editors/biew/files/patch-biewlib-sysdep-ia32_aclib_template.c @@ -0,0 +1,33 @@ +--- biewlib/sysdep/ia32/aclib_template.c.orig 2002-12-13 16:31:20.000000000 +0100 ++++ biewlib/sysdep/ia32/aclib_template.c 2007-10-04 15:22:15.000000000 +0200 +@@ -209,8 +209,8 @@ + MOVNTQ" %%mm6, 48(%1)\n" + MOVNTQ" %%mm7, 56(%1)\n" + :: "r" (from), "r" (to) : "memory"); +- ((const unsigned char *)from)+=64; +- ((unsigned char *)to)+=64; ++ from = ((const unsigned char *)from)+64; ++ to = ((unsigned char *)to)+64; + } + + // Pure Assembly cuz gcc is a bit unpredictable ;) +@@ -297,8 +297,8 @@ + MOVNTQ" %%mm6, 48(%1)\n" + MOVNTQ" %%mm7, 56(%1)\n" + :: "r" (from), "r" (to) : "memory"); +- ((const unsigned char *)from)+=64; +- ((unsigned char *)to)+=64; ++ from = ((const unsigned char *)from)+64; ++ to = ((unsigned char *)to)+64; + } + + #endif /* Have SSE */ +@@ -393,7 +393,7 @@ + MOVNTQ" %%mm0, 112(%0)\n" + MOVNTQ" %%mm0, 120(%0)\n" + :: "r" (to) : "memory"); +- ((unsigned char *)to)+=128; ++ to = ((unsigned char *)to)+128; + } + #endif /* Have SSE */ + #ifdef HAVE_MMX2 diff --git a/editors/biew/files/patch-biewlib_file_ini.c b/editors/biew/files/patch-biewlib_file_ini.c new file mode 100644 index 000000000000..d3b1e7e94620 --- /dev/null +++ b/editors/biew/files/patch-biewlib_file_ini.c @@ -0,0 +1,48 @@ +--- biewlib/file_ini.c.orig 2007-10-04 15:09:06.000000000 +0200 ++++ biewlib/file_ini.c 2007-10-04 15:11:14.000000000 +0200 +@@ -1295,7 +1295,7 @@ + void __HUGE__ *found; + ini_cache __HUGE__ *it; + ini_cache ic; +- (const char *)ic.item = section; ++ ic.item = section; + ic.flags = 0; + if(!(found =la_Find((linearArray *)opening->cache,&ic,__full_compare_cache))) + { +@@ -1325,7 +1325,7 @@ + { + do_subsect: + it = (ini_cache __HUGE__ *)found; +- (const char *)ic.item = subsection; ++ ic.item = subsection; + if(!(found=la_Find(it->v.leaf,&ic,__full_compare_cache))) + { + ic.item = PMalloc(strlen(subsection)+1); +@@ -1354,7 +1354,7 @@ + { + do_item: + it = (ini_cache __HUGE__ *)found; +- (const char *)ic.item = item; ++ ic.item = item; + ic.flags = IC_STRING; + if(!(found=la_Find(it->v.leaf,&ic,__full_compare_cache))) + { +@@ -1589,15 +1589,15 @@ + ini_cache ic; + void __HUGE__ *found,__HUGE__ *foundi,__HUGE__ *foundv; + ini_cache __HUGE__ *fi; +- (const char *)ic.item = section; ++ ic.item = section; + ic.flags = 0; + if((found=la_Find(ini->cache,&ic,__full_compare_cache))!=NULL) + { +- (const char *)ic.item=subsection; ++ ic.item=subsection; + fi = (ini_cache __HUGE__ *)found; + if((foundi=la_Find(fi->v.leaf,&ic,__full_compare_cache))!=NULL) + { +- (const char *)ic.item = _item; ++ ic.item = _item; + ic.flags = IC_STRING; + fi = (ini_cache __HUGE__ *)foundi; + if((foundv=la_Find(fi->v.leaf,&ic,__full_compare_cache))!=NULL) diff --git a/editors/biew/files/patch-biewlib_tw_clawss.c b/editors/biew/files/patch-biewlib_tw_clawss.c new file mode 100644 index 000000000000..e20529af2def --- /dev/null +++ b/editors/biew/files/patch-biewlib_tw_clawss.c @@ -0,0 +1,10 @@ +--- biewlib/tw_class.c.orig 2007-10-04 15:14:56.000000000 +0200 ++++ biewlib/tw_class.c 2007-10-04 15:15:16.000000000 +0200 +@@ -71,6 +71,6 @@ + TwClass * __FASTCALL__ twcFindClass(const char *name) + { + TwClass key; +- (const char *)(key.name) = name; ++ key.name = name; + return (TwClass *)la_Find(class_set,&key, comp_class); + } diff --git a/editors/biew/files/patch-biewlib_twin.c b/editors/biew/files/patch-biewlib_twin.c new file mode 100644 index 000000000000..b49c4beb5fd5 --- /dev/null +++ b/editors/biew/files/patch-biewlib_twin.c @@ -0,0 +1,14 @@ +--- biewlib/twin.c.orig 2007-10-04 15:13:06.000000000 +0200 ++++ biewlib/twin.c 2007-10-04 15:13:33.000000000 +0200 +@@ -1891,9 +1891,9 @@ + strcpy(__nls,str); + __nls_OemToOsdep((unsigned char *)__nls,len); + } +- else (const char *)__nls = str; ++ else __nls = str; + } +- else (const char *)__nls = str; ++ else __nls = str; + __nls_ptr = __nls; + __oem_ptr = str; + vidx = active->cur_x + active->cur_y*active->wwidth; |