]> source.dussan.org Git - tigervnc.git/commitdiff
Changes to build under LynxOS 2.3. Some more changes should be done to
authorConstantin Kaplinsky <const@tightvnc.com>
Sun, 21 May 2006 14:01:57 +0000 (14:01 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Sun, 21 May 2006 14:01:57 +0000 (14:01 +0000)
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

rfb/Timer.cxx
tx/TXCheckbox.h
tx/TXDialog.h
tx/TXEntry.h

index 59d250ed65d77f3d58f188059c87bd320448d1e1..66fd2b1215cb6345de9a77417ade20c6823001fe 100644 (file)
 #include <rfb/util.h>
 #include <rfb/LogWriter.h>
 
+// XXX Lynx/OS 2.3: proto for gettimeofday()
+#ifdef Lynx
+#include <sys/proto.h>
+#endif
+
 using namespace rfb;
 
 #ifndef __NO_DEFINE_VLOG__
index 3c2a23b8ee0a58725ed9d595940524c5b749d8c3..0880b38cef800f82a9807ac9c73de2d32bb25dcd 100644 (file)
@@ -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);
index 0bfd88a87e7448ca7457e18f10bfdbb376155afc..c8d601c3df7e8592c1db1723bd54814499970bb1 100644 (file)
 #include "TXWindow.h"
 #include <errno.h>
 
+// XXX Lynx/OS 2.3: protos for bzero(), select()
+#ifdef Lynx
+#include <sys/proto.h>
+#endif
+
 class TXDialog : public TXWindow, public TXDeleteWindowCallback {
 public:
   TXDialog(Display* dpy, int width, int height, const char* name,
index 9002957988911e74b4f9aca01997a4e2aad8c2a4..1785a5f517118f99630930094139f2acb70cffe4 100644 (file)
@@ -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.