Index: etc/fixdist
--- etc/fixdist.orig	1995-06-25 17:04:04.000000000 +0200
+++ etc/fixdist	2006-10-12 15:01:16.289329307 +0200
@@ -65,7 +65,7 @@
     	todir=".";
     	tofile=$2;
     	for (i=0; (p=index(tofile, "/")) != 0; ) {
-    		todir=todir "/" substr(tofile, 0, p-1);
+    		todir=todir "/" substr(tofile, 1, p-1);
     		tofile=substr(tofile, p+1, length(tofile)-p);
     		frompath="../" frompath;
     		i=p;
Index: src/bim/bim_attr.c
--- src/bim/bim_attr.c.orig	1998-04-07 13:32:30.000000000 +0200
+++ src/bim/bim_attr.c	2006-10-12 15:01:16.292489464 +0200
@@ -1286,11 +1286,7 @@
 /* Speicherbereich fuer die alfabetische Liste der Sortennamen wieder freigeben. Diese Liste wird in-
    zwischen vom List-Widget verwaltet. */
 
-#ifndef linux
   XtFree((char *) string_list);
-#else
-  #error "bug needs to be fixed"
-#endif
 
 /* Erzeugung der Menue-Button der Menueleiste gemaess der Liste 'menu_list' (s.o.). */
 
Index: src/cmax/cmax_pars.y
--- src/cmax/cmax_pars.y.orig	1998-04-01 13:04:45.000000000 +0200
+++ src/cmax/cmax_pars.y	2006-10-12 15:01:51.682873863 +0200
@@ -18,6 +18,7 @@
 extern line;
 static ELEMENT  syntaxtree = nil();
 extern ELEMENT  predeclared_entities( void );
+static ELEMENT _build_listexpr(ELEMENT applid, ELEMENT listexpr, ELEMENT exprseq);
 %}
 
 %union { 
Index: src/cmax/main.c
--- src/cmax/main.c.orig	1998-03-19 13:45:36.000000000 +0100
+++ src/cmax/main.c	2006-10-12 15:01:16.288137127 +0200
@@ -331,6 +331,9 @@
     int printflag = 0;
     FILE *fileptr;
 
+    extern FILE *errfile;
+    errfile = stderr;
+
 #ifdef DEBUG
         fprintf(stderr, "Start of main program\n");
 #endif
Index: src/mpp/mpp_cpplib.c
--- src/mpp/mpp_cpplib.c.orig	1997-06-24 15:18:15.000000000 +0200
+++ src/mpp/mpp_cpplib.c	2006-10-12 15:01:16.291781591 +0200
@@ -55,18 +55,17 @@
 #include <ctype.h>
 #include <stdio.h>
 #include <signal.h>
+#include <time.h>		/* for __DATE__ and __TIME__ */
 #ifdef __STDC__
 #include <stdlib.h>
 #endif
 
 #ifndef VMS
 #ifndef USG
-#include <sys/time.h>		/* for __DATE__ and __TIME__ */
 #include <sys/resource.h>
 #else
 #include <sys/param.h>			/* CYGNUS LOCAL: shebs -noquiet */
 #include <sys/times.h>
-#include <time.h>
 #include <fcntl.h>
 #endif /* USG */
 #endif /* not VMS */
