--- xmountains/artist.c	Wed Dec  3 10:39:15 1997
+++ xmountains-patched/artist.c	Fri May 31 16:50:14 2002
@@ -1,6 +1,7 @@
 /*
  *   routines to render a fractal landscape as an image
  */
+#include <stdlib.h>
 #include <math.h>
 #include <stdio.h>
 #include "paint.h"
--- xmountains/calcalt.c	Fri Mar 30 04:35:44 2001
+++ xmountains-patched/calcalt.c	Fri May 31 16:50:54 2002
@@ -16,6 +16,7 @@
  * is called itself so it will take a number of iterations for any changes to
  * be notices by the bottom (long length scale) level.
  */
+#include <stdlib.h>
 #include <stdio.h>
 #include <math.h>
 #include "crinkle.h"
--- xmountains/crinkle.h	Fri Oct 24 07:55:16 1997
+++ xmountains-patched/crinkle.h	Fri May 31 17:00:51 2002
@@ -78,6 +78,15 @@
 void v_update(Fold *, float, float, Strip *, Strip *, Strip *);
 void vside_update(Fold *, float, float, Strip *);
 void hside_update(Fold *, float, float, Strip *, Strip *, Strip *);
+void init_parameters();
+void plot_column(Graph *g);
+void print_algorithm();
+void seed_uni(int ijkl);
+void blank_region(int lx,int ly,int ux,int uy);
+void flush_region(int x, int y, int w, int h);
+void scroll_screen( int dist );
+void plot_pixel( int x, int y, Gun value );
+void finish_artist();
 #else
 Strip *make_strip ();
 void free_strip ();
@@ -95,7 +104,15 @@
 void v_update();
 void vside_update();
 void hside_update();
-
+void init_parameters();
+void plot_column();
+void print_algorithm();
+void seed_uni();
+void blank_region();
+void flush_region();
+void scroll_screen();
+void plot_pixel();
+void finish_artist();
 #endif
 /* }}} */
 #endif
--- xmountains/X_graphics.c	Fri Mar 30 04:13:12 2001
+++ xmountains-patched/X_graphics.c	Fri May 31 16:53:12 2002
@@ -1,3 +1,4 @@
+#include <stdlib.h>
 #include <stdio.h>
 #include<X11/Xlib.h>
 #include<X11/Xutil.h>
@@ -79,7 +80,7 @@
 {
   XEvent event;
   XExposeEvent *expose = (XExposeEvent *)&event;
-  int exw, exh, i;
+  int exw, exh;
 
   while( XPending(dpy) ){
     XNextEvent(dpy, &event);
@@ -219,8 +220,8 @@
 {
 /*{{{defs*/
   Visual *vis;
-  int mask;
-  int count;
+//  int mask;
+//  int count;
   int x=0;
   int y=0;
   int gbits=0;
--- xmountains/xmountains.c	Fri Mar 30 04:34:45 2001
+++ xmountains-patched/xmountains.c	Fri May 31 17:00:07 2002
@@ -1,4 +1,5 @@
-
+#include <unistd.h> // for getpid & sleep
+#include <stdlib.h>
 #include <stdio.h>
 #include <signal.h>
 #include "crinkle.h"