File hdf5-1.8.1-build.patch of Package hdf5

--- c++/src/H5PropList.cpp
+++ c++/src/H5PropList.cpp
@@ -20,6 +20,7 @@
 #endif
 
 #include <string>
+#include <cstdlib>
 
 #include "H5Include.h"
 #include "H5Exception.h"
--- perform/zip_perf.c
+++ perform/zip_perf.c
@@ -545,7 +545,7 @@
         unlink(filename);
 
         /* do compressed data write */
-        output = open(filename, O_RDWR | O_CREAT);
+        output = open(filename, O_RDWR | O_CREAT, S_IRWXU);
 
         if (output == -1)
             error(strerror(errno));
openSUSE Build Service is sponsored by