diff --git a/svgalib/Makefile b/svgalib/Makefile index c0136f4..b316124 100644 --- a/svgalib/Makefile +++ b/svgalib/Makefile @@ -136,5 +136,5 @@ $(eval $(call BuildPackage,svgalib-demo)) # The following comments configure the Emacs editor. Just ignore them. # Local Variables: -# compile-command: "make -C ~/h/src/qi/openwrt-xburst package/svgalib/compile -j2 V=99" +# compile-command: "cd ~/src/nanonote/svgalib-1.4.3 && ~/bin/quilt-export target && make -C ~/h/src/qi/openwrt-xburst package/svgalib/compile -j2 V=99" # End: diff --git a/svgalib/patches/120-fix-memsetx.patch b/svgalib/patches/120-fix-memsetx.patch new file mode 100644 index 0000000..55b2fd7 --- /dev/null +++ b/svgalib/patches/120-fix-memsetx.patch @@ -0,0 +1,29 @@ +Index: svgalib-1.4.3/gl/inlstring.h +=================================================================== +--- svgalib-1.4.3.orig/gl/inlstring.h 2011-01-29 14:33:47.000000000 +0100 ++++ svgalib-1.4.3/gl/inlstring.h 2011-01-29 14:42:07.000000000 +0100 +@@ -8,9 +8,22 @@ + #define __memcpy_conventional(dst,src,n) memcpy((dst),(src),(n)) + #define __memcpyb(dst,src,n) memcpy((dst),(src),(n)) + #define __memsetb(dst,c,n) memset((dst),(c),(n)) +-#define __memsetlong(dst,c,n) memset((dst),(c),(n)) + #define __memset(dst,c,n) memset((dst),(c),(n)) +-#define __memset2(dst,c,n) memset((dst),(c),2*(n)) ++static void __memsetlong(void *ptr, int c, int n) ++{ ++ unsigned *dst = (unsigned*)ptr; ++ int i; ++ for (i = 0; i < n; i++) ++ dst[i] = c; ++} ++static void __memset2(void *ptr, int c, int n) ++{ ++ unsigned short *dst = (unsigned short*)ptr; ++ int i; ++ for (i = 0; i < n; i++) ++ dst[i] = c; ++} ++/* todo: */ + #define __memset3(dst,c,n) memset((dst),(c),3*(n)) + + #else