Commit 65e9d067f33bb50a2fdb52419f832aafa7cc69f3

Authored by Perry Werneck
1 parent 5cad927b
Exists in master and in 1 other branch develop

Fixing win32 warnings

Fixing segfault on the settings dialog.
src/dialogs/settings/dialog.c
... ... @@ -61,7 +61,7 @@ static gboolean on_tab_focus(V3270Settings *settings, GdkEvent G_GNUC_UNUSED(*ev
61 61 }
62 62 */
63 63  
64   -void on_switch_page(GtkNotebook G_GNUC_UNUSED(*notebook), V3270Settings *settings, guint G_GNUC_UNUSED(page_num), V3270SettingsDialog *dialog)
  64 +static void on_switch_page(GtkNotebook G_GNUC_UNUSED(*notebook), V3270Settings *settings, guint G_GNUC_UNUSED(page_num), V3270SettingsDialog *dialog)
65 65 {
66 66 debug("title: %s",settings->title);
67 67 debug("label: %s",settings->label);
... ...
src/include/v3270.h
... ... @@ -32,6 +32,7 @@
32 32 #define V3270_H_INCLUDED 1
33 33  
34 34 #ifdef _WIN32
  35 + #include <winsock2.h>
35 36 #include <windows.h>
36 37 #endif // _WIN32
37 38  
... ...
src/terminal/windows/registry.c
... ... @@ -28,6 +28,7 @@
28 28 */
29 29  
30 30 #include <config.h>
  31 + #include <winsock2.h>
31 32 #include <windows.h>
32 33 #include <terminal.h>
33 34 #include <internals.h>
... ...