nmapsi4/nmapsi4-0.3.1-gcc-4.7.patch

42 lines
961 B
Diff
Raw Permalink Normal View History

diff --git a/nmapsi4/app/mainwin.h b/nmapsi4/app/mainwin.h
index 89f84e2..ce31cfd 100644
--- a/nmapsi4/app/mainwin.h
+++ b/nmapsi4/app/mainwin.h
@@ -57,6 +57,11 @@
#include "parser.h"
#include "vulnerability.h"
+// system
+#ifndef Q_WS_WIN
+#include <unistd.h>
+#endif
+
// define class namespace
using namespace internalLookup;
using namespace digInterface;
@@ -71,7 +76,7 @@ namespace Ui
class nmapClass : public QMainWindow, public Ui::MainWindow
{
Q_OBJECT
-
+
friend class parser;
friend class vulnerability;
diff --git a/nmapsi4/app/preference/profilemain.h b/nmapsi4/app/preference/profilemain.h
index 1d7049a..3a79b37 100644
--- a/nmapsi4/app/preference/profilemain.h
+++ b/nmapsi4/app/preference/profilemain.h
@@ -29,6 +29,11 @@
#include "utilities.h"
#include <ui_profilemain.h>
+// system
+#ifndef Q_WS_WIN
+#include <unistd.h>
+#endif
+
class mainProfile : public QDialog, private Ui::ProfileMain
{
Q_OBJECT