commit 0b96e93bc356eb6a15eb351e429d342a5534e184
parent 0861f933e61bdda83014303665cdd5122b9b40e5
Author: David Auer <david.auer@credativ.de>
Date: Thu, 18 Aug 2022 18:36:42 +0200
Fix WIN32 build
Diffstat:
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/cnping.c b/cnping.c
@@ -752,6 +752,12 @@ int main( int argc, const char ** argv )
}
#if defined( WIN32 ) || defined( WINDOWS )
+ if(device)
+ {
+ ERRM("Error: Device option is not implemented on your platform. PRs welcome.\n");
+ exit( -1 );
+ }
+
if( WSAStartup(MAKEWORD(2,2), &wsaData) )
{
ERRM( "Fault in WSAStartup\n" );
diff --git a/ping.c b/ping.c
@@ -47,8 +47,9 @@ struct sockaddr_in psaddr;
static og_sema_t s_disp;
static og_sema_t s_ping;
-void ping_setup()
+void ping_setup(const char * device)
{
+
s_disp = OGCreateSema();
s_ping = OGCreateSema();
//This function is executed first.