tag 461695 patch
thanks

Martin Michlmayr <[EMAIL PROTECTED]> (20/01/2008):
> Package: zhcon
> Version: 1:0.2.6-5
> Usertags: ftbfs-gcc-4.3

Hi,

please find attached a patch to fix this FTBFS.

Cheers,

-- 
Cyril Brulebois
--- a/src/basefont.cpp
+++ b/src/basefont.cpp
@@ -29,6 +29,8 @@
 #include "hzdecoder.h"
 #include "basefont.h"
 
+#include <cstring>
+
 BaseFont::BaseFont(string & fn, int w, int h)
 :mFd(0)
 ,mpBuf(0)
--- a/src/display/fblinear4.cpp
+++ b/src/display/fblinear4.cpp
@@ -22,6 +22,8 @@
 #include "global.h"
 #include "fblinear4.h"
 
+#include <cstring>
+
 __u16 FBLinear4::nibbletab_cfb4[] = {
 #if BYTE_ORDER == LITTLE_ENDIAN
 0x0000,0xf000,0x0f00,0xff00,
--- a/src/display/fblinear8.cpp
+++ b/src/display/fblinear8.cpp
@@ -22,6 +22,8 @@
 #include "global.h"
 #include "fblinear8.h"
 
+#include <cstring>
+
 __u32 FBLinear8::nibbletab_cfb8[] = {
 #if BYTE_ORDER == LITTLE_ENDIAN
 0x00000000,0xff000000,0x00ff0000,0xffff0000,
--- a/src/display/fbvgaplanes.cpp
+++ b/src/display/fbvgaplanes.cpp
@@ -38,6 +38,8 @@
 }
 #endif
 
+#include <cstring>
+
 /* based on kernel
  * Force strict CPU ordering.
  * And yes, this is required on UP too when we're talking
--- a/src/display/vgadev.cpp
+++ b/src/display/vgadev.cpp
@@ -37,6 +37,8 @@
 #include "vgadev.h"
 #include "lrmi.h"
 
+#include <cstring>
+
 #define GRAPH_BASE 0xA0000
 #define GRAPH_ADDR  0x3ce
 #define GRAPH_DATA  0x3cf
--- a/src/graphdev.cpp
+++ b/src/graphdev.cpp
@@ -36,6 +36,8 @@
     #endif
 #endif
 
+#include <cstring>
+
 using namespace std;
 // mmap framebuffer address
 GraphDev *GraphDev::mpGraphDev = NULL;
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -24,6 +24,8 @@
 #include "debug.h"
 #include "window.h"
 
+#include <cstring>
+
 //static members for all the windows
 Window* Window::mpConsole = NULL;
 char* Window::mpOverlaps = NULL;
--- a/src/zhcon.cpp
+++ b/src/zhcon.cpp
@@ -83,6 +83,8 @@
 ofstream debug("debug");
 #endif
 
+#include <cstring>
+
 Zhcon* Zhcon::mpZhcon = NULL;
 int Zhcon::mTtyPid = 0;
 Zhcon::STATE Zhcon::mState = STOP;

Attachment: signature.asc
Description: Digital signature

Reply via email to