File pfstools-stdlib.patch of Package pfstools

--- src/fileformat/pfsinexr.cpp
+++ src/fileformat/pfsinexr.cpp
@@ -29,6 +29,8 @@
 
 #include <cstdlib>
 
+#include <stdlib.h>
+
 #include <iostream>
 
 #include <stdio.h>
--- src/fileformat/pfsinppm.cpp
+++ src/fileformat/pfsinppm.cpp
@@ -30,6 +30,8 @@
 
 #include <cstdlib>
 
+#include <stdlib.h>
+
 #include <iostream>
 
 #include <getopt.h>
--- src/fileformat/pfsinrgbe.cpp
+++ src/fileformat/pfsinrgbe.cpp
@@ -30,6 +30,8 @@
 
 #include <cstdlib>
 
+#include <stdlib.h>
+
 #include <iostream>
 
 #include <getopt.h>
--- src/fileformat/pfsintiff.cpp
+++ src/fileformat/pfsintiff.cpp
@@ -29,6 +29,8 @@
 
 #include <cstdlib>
 
+#include <stdlib.h>
+
 #include <iostream>
 
 #include <getopt.h>
--- src/fileformat/pfsoutexr.cpp
+++ src/fileformat/pfsoutexr.cpp
@@ -32,6 +32,7 @@
 
 #include <iostream>
 
+#include <stdlib.h>
 #include <stdio.h>
 #include <pfs.h>
 #include <getopt.h>
--- src/fileformat/pfsoutppm.cpp
+++ src/fileformat/pfsoutppm.cpp
@@ -30,6 +30,8 @@
 
 #include <cstdlib>
 
+#include <stdlib.h>
+
 #include <iostream>
 
 #include <getopt.h>
--- src/fileformat/pfsoutrgbe.cpp
+++ src/fileformat/pfsoutrgbe.cpp
@@ -30,6 +30,8 @@
 
 #include <cstdlib>
 
+#include <stdlib.h>
+
 #include <iostream>
 
 #include <getopt.h>
--- src/fileformat/pfsouttiff.cpp
+++ src/fileformat/pfsouttiff.cpp
@@ -29,6 +29,8 @@
 
 #include <cstdlib>
 
+#include <stdlib.h>
+
 #include <iostream>
 
 #include <getopt.h>
--- src/filter/pfscat.cpp
+++ src/filter/pfscat.cpp
@@ -29,6 +29,7 @@
 #include <iostream>
 #include <getopt.h>
 #include <fcntl.h>
+#include <limits.h> 
 #include <stdlib.h>
 
 #define PROG_NAME "pfscat"
--- src/filter/pfscut.cpp
+++ src/filter/pfscut.cpp
@@ -29,6 +29,8 @@
 #include <cstdlib>
 #include <iostream>
 #include <getopt.h>
+#include <limits.h>
+#include <stdlib.h>
 
 
 #define PROG_NAME "pfscut"
--- src/filter/pfspad.cpp
+++ src/filter/pfspad.cpp
@@ -30,6 +30,8 @@
 #include <cstdlib>
 #include <iostream>
 #include <getopt.h>
+#include <limits.h>
+#include <stdlib.h>
 
 
 #define PROG_NAME "pfspad"
--- src/pfs/pfs.cpp
+++ src/pfs/pfs.cpp
@@ -40,6 +40,7 @@
 
 #include <fcntl.h>
 
+#include <stdlib.h>
 #include <string.h>
 #include <assert.h>
 #include <string>