about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--doc/HISTORY2
-rw-r--r--generator/ppmrough.c4
2 files changed, 5 insertions, 1 deletions
diff --git a/doc/HISTORY b/doc/HISTORY
index d244e8d3..051dfe2e 100644
--- a/doc/HISTORY
+++ b/doc/HISTORY
@@ -15,6 +15,8 @@ not yet  BJH  Release 10.40.00
               Build: don't use 'uint' type.  Solaris 10 apparently doesn't
               have it.
 
+              Build: Add missing <stdlib.h> to ppmrough.c.
+
 07.06.26 BJH  Release 10.39.00
 
               Add pamtooctave.  Thanks Scott Pakin (scott@pakin.org).
diff --git a/generator/ppmrough.c b/generator/ppmrough.c
index f8823173..879bcb06 100644
--- a/generator/ppmrough.c
+++ b/generator/ppmrough.c
@@ -10,10 +10,12 @@
 ** documentation.  This software is provided "as is" without express or
 ** implied warranty.  */
 
+#include <stdlib.h>
 #include <math.h>
 #include <sys/time.h>
-#include "ppm.h"
+
 #include "shhopt.h"
+#include "ppm.h"
 
 static pixel** PIX;
 static pixval BG_RED, BG_GREEN, BG_BLUE;