From: Constantin Kaplinsky Date: Sun, 21 May 2006 14:01:57 +0000 (+0000) Subject: Changes to build under LynxOS 2.3. Some more changes should be done to X-Git-Tag: v0.0.90~384^2~301 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=979d44b10be90633ea14fb8f1866e8a436a7fa77;p=tigervnc.git Changes to build under LynxOS 2.3. Some more changes should be done to build successfully, e.g. LynxOS 2.3 does not have snprintf(). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@571 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- diff --git a/rfb/Timer.cxx b/rfb/Timer.cxx index 59d250ed..66fd2b12 100644 --- a/rfb/Timer.cxx +++ b/rfb/Timer.cxx @@ -29,6 +29,11 @@ #include #include +// XXX Lynx/OS 2.3: proto for gettimeofday() +#ifdef Lynx +#include +#endif + using namespace rfb; #ifndef __NO_DEFINE_VLOG__ diff --git a/tx/TXCheckbox.h b/tx/TXCheckbox.h index 3c2a23b8..0880b38c 100644 --- a/tx/TXCheckbox.h +++ b/tx/TXCheckbox.h @@ -68,7 +68,7 @@ public: // setText() changes the text in the checkbox. void setText(const char* text_) { if (text) free(text); - text = strdup(text_); + text = strdup((char*)text_); int textWidth = XTextWidth(defaultFS, text, strlen(text)); int textHeight = (defaultFS->ascent + defaultFS->descent); int newWidth = __rfbmax(width(), textWidth + xPad*2 + boxPad*2 + boxSize); diff --git a/tx/TXDialog.h b/tx/TXDialog.h index 0bfd88a8..c8d601c3 100644 --- a/tx/TXDialog.h +++ b/tx/TXDialog.h @@ -31,6 +31,11 @@ #include "TXWindow.h" #include +// XXX Lynx/OS 2.3: protos for bzero(), select() +#ifdef Lynx +#include +#endif + class TXDialog : public TXWindow, public TXDeleteWindowCallback { public: TXDialog(Display* dpy, int width, int height, const char* name, diff --git a/tx/TXEntry.h b/tx/TXEntry.h index 90029579..1785a5f5 100644 --- a/tx/TXEntry.h +++ b/tx/TXEntry.h @@ -33,6 +33,9 @@ #ifndef XK_ISO_Left_Tab #define XK_ISO_Left_Tab 0xFE20 #endif +#ifndef XK_KP_Delete +#define XK_KP_Delete 0xFF9F +#endif // TXEntryCallback's entryCallback() method is called when one of three special // key presses have happened: Enter/Return, forward tab, or backward tab.