pentoo-overlay/net-analyzer/arpantispoofer/files/fix_errors_while_building.patch
2019-10-26 23:24:59 +03:00

28 lines
1.2 KiB
Diff

diff -ur a/antispoof/platform.h b/antispoof/platform.h
--- a/antispoof/platform.h 2009-10-12 06:52:32.000000000 +0400
+++ b/antispoof/platform.h 2019-10-26 22:56:23.156330627 +0300
@@ -31,9 +31,9 @@
typedef pthread_t Thread_h;
typedef CALL_BACK (*StartRoutine)( void* arg );
-typedef int SOCKET;
+typedef int SOCKET_LOC;
-#define INVALID_SOCKET (SOCKET)(~0)
+#define INVALID_SOCKET (SOCKET_LOC)(~0)
#define SOCKET_ERROR (-1)
diff -ur a/linux-ui/entry.cpp b/linux-ui/entry.cpp
--- a/linux-ui/entry.cpp 2009-11-20 07:28:28.000000000 +0300
+++ b/linux-ui/entry.cpp 2019-10-26 22:57:50.596142449 +0300
@@ -118,8 +118,7 @@
sprintf( buff + i, "%02X-%02X-%02X-%02X-%02X-%02X is spoofing!\nStart anti-spoofing.",
mac->addr[0], mac->addr[1], mac->addr[2], mac->addr[3], mac->addr[4], mac->addr[5] );
- notify = notify_notification_new_with_status_icon( "ARP spoofing detected!", buff,
- GTK_STOCK_DIALOG_WARNING, trayicon );
+ notify = notify_notification_new( "ARP spoofing detected!", buff, NULL );
notify_notification_set_timeout( notify, 5000 );
notify_notification_set_urgency( notify, NOTIFY_URGENCY_NORMAL );
g_signal_connect( notify, "closed", G_CALLBACK(g_object_unref), NULL );