Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-jy committed Jan 15, 2025
1 parent 2485ada commit 3750f46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cpp/lib/Authenticator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@
#include <functional>
#ifdef _WIN32
#include <WS2tcpip.h>
#else
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif

#include "Authenticator.hpp"
Expand All @@ -36,9 +40,6 @@
#ifdef __APPLE__
#include <CoreFoundation/CFBundle.h>
#include <ApplicationServices/ApplicationServices.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#endif

#ifdef _WIN32
Expand Down
6 changes: 6 additions & 0 deletions cpp/lib/Authenticator.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,14 @@ namespace Client
{

private:
#ifdef _WIN32
SOCKET m_socket_descriptor; // socket
SOCKET m_socket_desc_web_client; // socket (client)
#else
int m_socket_descriptor; // socket
int m_socket_desc_web_client; // socket (client)
#endif

int m_port; // port to listen
std::string m_saml_token;
bool m_consent_cache_id_token;
Expand Down

0 comments on commit 3750f46

Please sign in to comment.