kdump/kdump-gcc47.patch
Petr Tesařík 45453595be Accepting request 109811 from home:dimstar:gcc47
Fix build with gcc 4.7 - Please work with upstream to resolve it in upstream code base. There is also a chance that a newer version of the package might have this fixed already.

OBS-URL: https://build.opensuse.org/request/show/109811
OBS-URL: https://build.opensuse.org/package/show/Kernel:kdump/kdump?expand=0&rev=38
2012-03-21 10:42:35 +00:00

37 lines
1.0 KiB
Diff

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>