1999-05-30 02:39:07 +00:00
|
|
|
--- src/bin/ibuild/ibcmds.c.orig Fri Dec 11 22:33:25 1992
|
1999-12-29 07:47:39 +00:00
|
|
|
+++ src/bin/ibuild/ibcmds.c Tue Dec 28 23:53:30 1999
|
|
|
|
@@ -86,13 +86,18 @@
|
1999-05-30 02:39:07 +00:00
|
|
|
#undef FileChooser
|
|
|
|
#define FileChooser _lib_iv(FileChooser)
|
|
|
|
|
|
|
|
+#if __FreeBSD_cc_version < 400002
|
|
|
|
#include <osfcn.h>
|
|
|
|
+#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stream.h>
|
1999-12-29 07:47:39 +00:00
|
|
|
#include <string.h>
|
|
|
|
#include <sys/stat.h>
|
|
|
|
#include <sys/wait.h>
|
|
|
|
+#ifdef __FreeBSD__
|
|
|
|
+#include <unistd.h>
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
#if defined(sgi) || defined(sco)
|
|
|
|
/* not all vforks are alike */
|
|
|
|
@@ -2407,12 +2412,13 @@
|
1999-01-26 02:40:32 +00:00
|
|
|
EditorInfo* installed = (EditorInfo*) toolsdialog.Installed();
|
|
|
|
EditorInfo* removed = (EditorInfo*) toolsdialog.Removed();
|
|
|
|
|
|
|
|
- Iterator i;
|
|
|
|
- for (unidraw->First(i); !unidraw->Done(i); unidraw->Next(i)) {
|
|
|
|
- IBEditor* iEd = (IBEditor*) unidraw->GetEditor(i);
|
|
|
|
+ Iterator ii;
|
|
|
|
+ for (unidraw->First(ii); !unidraw->Done(ii); unidraw->Next(ii)) {
|
|
|
|
+ IBEditor* iEd = (IBEditor*) unidraw->GetEditor(ii);
|
|
|
|
ToolPanel* itoolpanel = iEd->GetToolPanel();
|
1999-12-29 07:47:39 +00:00
|
|
|
+ int i;
|
1999-01-26 02:40:32 +00:00
|
|
|
|
1999-12-29 07:47:39 +00:00
|
|
|
- for (int i = 0; i < installed->Count(); i++) {
|
|
|
|
+ for (i = 0; i < installed->Count(); i++) {
|
|
|
|
itoolpanel->Install(installed->GetName(i));
|
|
|
|
}
|
|
|
|
for (i = 0; i < removed->Count(); i++) {
|