about summary refs log tree commit diff
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-06-28 14:20:55 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-06-28 14:20:55 +0000
commit84e2e0921bb5bf593c65513a2a922867f66c1dbd (patch)
tree275aead5055a337353899f383acfe7004d4c4160
parentc283a39cc753085273475d5832cf266e43e1738e (diff)
downloadnetpbm-mirror-84e2e0921bb5bf593c65513a2a922867f66c1dbd.tar.gz
netpbm-mirror-84e2e0921bb5bf593c65513a2a922867f66c1dbd.tar.xz
netpbm-mirror-84e2e0921bb5bf593c65513a2a922867f66c1dbd.zip
Add missing <stdlib.h>
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@343 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-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;