File kdump-gcc47.patch of Package kdump

Index: kdump-0.8.1/kdumptool/dataprovider.cc
===================================================================
--- kdump-0.8.1.orig/kdumptool/dataprovider.cc
+++ kdump-0.8.1/kdumptool/dataprovider.cc
@@ -20,6 +20,7 @@
 #include <cstdarg>
 #include <cerrno>
 #include <algorithm>
+#include <unistd.h>
 
 #include "dataprovider.h"
 #include "global.h"
Index: kdump-0.8.1/kdumptool/debug.cc
===================================================================
--- kdump-0.8.1.orig/kdumptool/debug.cc
+++ kdump-0.8.1/kdumptool/debug.cc
@@ -22,6 +22,7 @@
 #include <cstring>
 #include <string>
 #include <sstream>
+#include <unistd.h>
 
 #include "debug.h"
 
Index: kdump-0.8.1/kdumptool/socket.cc
===================================================================
--- kdump-0.8.1.orig/kdumptool/socket.cc
+++ kdump-0.8.1/kdumptool/socket.cc
@@ -16,6 +16,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
  * 02110-1301, USA.
  */
+#include <unistd.h>
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netdb.h>