Fix it to compile using egcs.

This commit is contained in:
fgsch 1999-08-05 07:04:27 +00:00
parent fa0ca2544e
commit 92d138b182
3 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- configure.orig Sat Nov 28 00:40:52 1998
+++ configure Thu Aug 5 01:56:43 1999
@@ -2512,6 +2512,7 @@
#include "confdefs.h"
#include <sys/types.h>
#include <sys/time.h>
+#include <unistd.h>
#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
#endif

View File

@ -0,0 +1,17 @@
--- ltk/LTKButtonDialog.cc.orig Sat Nov 28 00:41:42 1998
+++ ltk/LTKButtonDialog.cc Thu Aug 5 02:07:48 1999
@@ -93,11 +93,12 @@
labelBox = new LTKBox(NULL, 1, 1, 2, 2, 2, 2, ltkBorderNone, 0, 0,
new LTKEmpty());
}
- trueBtn = new LTKButton(NULL, 1, trueBtnLabel ? trueBtnLabel : "Ok",
+ trueBtn = new LTKButton(NULL, 1, trueBtnLabel ? trueBtnLabel : (char *)"Ok",
ltkButtonClick, &buttonCbk);
trueBtnBox = new LTKBox(NULL, 1, 1, 0, 0, 0, 0, ltkBorderNone, 0, 0,
trueBtn);
- falseBtn = new LTKButton(NULL, 0, falseBtnLabel ? falseBtnLabel : "Cancel",
+ falseBtn = new LTKButton(NULL, 0,
+ falseBtnLabel ? falseBtnLabel : (char *)"Cancel",
ltkButtonClick, &buttonCbk);
falseBtnBox = new LTKBox(NULL, 1, 1, 0, 0, 0, 0, ltkBorderNone, 0, 0,
falseBtn);

View File

@ -0,0 +1,17 @@
--- xpdf/PSOutputDev.cc.orig Thu Aug 5 02:32:44 1999
+++ xpdf/PSOutputDev.cc Thu Aug 5 02:33:56 1999
@@ -471,12 +471,12 @@
writePS("/F%d_%d /%s %g\n",
font->getID().num, font->getID().gen, psName, scale);
for (i = 0; i < 256; i += 8) {
- writePS((i == 0) ? "[ " : " ");
+ writePS((char *)((i == 0) ? "[ " : " "));
for (j = 0; j < 8; ++j) {
charName = font->getCharName(i+j);
writePS("/%s", charName ? charName : ".notdef");
}
- writePS((i == 256-8) ? "]\n" : "\n");
+ writePS((char *)((i == 256-8) ? "]\n" : "\n"));
}
writePS("pdfMakeFont\n");
}