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
#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__
// 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);
#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,
#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.