Fix build

Reported by:	"Paul A. Mayer" <paul@fnug.net>
This commit is contained in:
Patrick Li 2003-02-14 20:46:24 +00:00
parent 6ce96ae4b4
commit 81078eec59
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=75530
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,10 @@
--- fwrule.cpp.orig Fri Feb 14 13:36:27 2003
+++ fwrule.cpp Fri Feb 14 13:36:33 2003
@@ -5,6 +5,7 @@
#include <sys/param.h>
#include <ctype.h>
#include <netdb.h>
+#include <netinet/in.h>
#define IPPROTO_IP 0

View File

@ -0,0 +1,20 @@
--- main.cpp.orig Fri Feb 14 13:38:07 2003
+++ main.cpp Fri Feb 14 13:41:54 2003
@@ -28,6 +28,8 @@
#include <qlineedit.h>
#include <qmessagebox.h>
+#include <netinet/in.h>
+
void load_protocol_list();
void load_service_list();
void load_interface_list();
@@ -192,7 +194,7 @@
char tmpstr[500];
QString rcfile_name = getpwuid(getuid())->pw_dir;
rcfile_name+="/.qtfwrc";
- ifstream rcfile(rcfile_name,ios::nocreate);
+ ifstream rcfile(rcfile_name,ios::in);
app_rc.style = "Windows";
app_rc.browser = "netscape";

View File

@ -0,0 +1,20 @@
--- optionlistdialog.cpp.orig Fri Feb 14 13:45:36 2003
+++ optionlistdialog.cpp Fri Feb 14 13:46:06 2003
@@ -15,7 +15,7 @@
{
}
-OptionListDialog::OptionListDialog(QString * items,int numItems, QString selected_item,QWidget* parent = 0, const char* name = 0)
+OptionListDialog::OptionListDialog(QString * items,int numItems, QString selected_item,QWidget* parent, const char* name)
: QDialog( parent, name, TRUE, 0 )
{
if ( !name )
@@ -79,7 +79,7 @@
{
}
-IcmptypeListDialog::IcmptypeListDialog(_icmpcode * items,int numItems, QString selected_item,QWidget* parent = 0, const char* name = 0)
+IcmptypeListDialog::IcmptypeListDialog(_icmpcode * items,int numItems, QString selected_item,QWidget* parent, const char* name)
: QDialog( parent, name, TRUE, 0 )
{
if ( !name )