Skip to content

Commit

Permalink
libvsock: Support building without VMware vSocket headers
Browse files Browse the repository at this point in the history
Signed-off-by: Tormod Volden <[email protected]>
  • Loading branch information
tormodvolden committed Oct 16, 2023
1 parent aa21ece commit 6cb5fd6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions irpmonc/irpmonc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
#include "driver-settings.h"
#include "request-output.h"
#include "stop-event.h"
#ifndef NOVSOCKETS
#include "libvsock.h"
#endif
#include "guid-api.h"
#include "irpmonc.h"

Expand Down Expand Up @@ -195,6 +197,7 @@ static int _parse_input(const wchar_t *Value)
if (_initInfo.Data.Network.Address == NULL)
ret = ENOMEM;
break;
#ifndef NOVSOCKETS
case ictVSockets: {
wchar_t *endptr = NULL;
unsigned int vmciVersion = 0xffffffff;
Expand Down Expand Up @@ -240,6 +243,7 @@ static int _parse_input(const wchar_t *Value)
fprintf(stderr, "[INFO]: vSock address: 0x%x (%u)\n", _initInfo.Data.VSockets.CID, _initInfo.Data.VSockets.CID);
fprintf(stderr, "[INFO]: vSock port: 0x%x (%u)\n", _initInfo.Data.VSockets.Port, _initInfo.Data.VSockets.Port);
} break;
#endif
case ictHyperV: {
wchar_t vmIdBuffer[100];
wchar_t appIdBuffer[100];
Expand Down

0 comments on commit 6cb5fd6

Please sign in to comment.