forked from pool/kdump
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
37 lines
1.0 KiB
Diff
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>
|