Skip to content

Commit

Permalink
Include the right header when building for iOS (#3002) (#3402)
Browse files Browse the repository at this point in the history
Signed-off-by: Lightech <lightech@outlook.com>
(cherry picked from commit c24bef2)

Co-authored-by: light-tech <lightech@outlook.com>
  • Loading branch information
mergify[bot] and light-tech authored Apr 13, 2023
1 parent 141fa03 commit d3fcd58
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/cpp/utils/IPFinder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@

#include <fastdds/dds/log/Log.hpp>

#if defined(__APPLE__)
#include <TargetConditionals.h>
#endif // if defined(__APPLE__)

#if defined(_WIN32)
#pragma comment(lib, "Iphlpapi.lib")
#include <stdio.h>
Expand All @@ -40,7 +44,11 @@
#include <string.h>
#include <net/if.h>
#include <sys/ioctl.h>
#if defined(__APPLE__) && TARGET_OS_IPHONE
#include <net/ethernet.h>
#else
#include <net/if_arp.h>
#endif // if defined(__APPLE__) && TARGET_OS_IPHONE
#include <errno.h>
#if defined(__APPLE__)
#include <sys/types.h>
Expand Down

0 comments on commit d3fcd58

Please sign in to comment.