Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build support for iOS #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add build support for iOS #17

wants to merge 1 commit into from

Conversation

horusxnetworks
Copy link

  • route.h is not found on later release of iOS SDK.
  • route.h is copied from MacOS SDK (from XCode 11.3.1)
    This commit is to support build for iOS

@Coeur
Copy link

Coeur commented Apr 22, 2024

Possibly more portable or future-proof:

#if __has_include(<net/route.h>)
#include <net/route.h>
#else
#include "route.h"
#endif

and then we don't need <TargetConditionals.h>.

@Coeur
Copy link

Coeur commented Apr 23, 2024

In Xcode 15.3 (about 4 years after 11.3.1),

  • lines 86-87 (rmx_state and rmx_filler[3]) got combined into rmx_filler[4].
  • line 109 (RTF_LLDATA) is removed.
  • line 130 adds #define RTF_GLOBAL 0x40000000
  • line 133 (RTF_BITS) is removed.
  • line 142 adds macros IS_DYNAMIC_DIRECT_HOSTROUTE and IS_LOCALNET_ROUTE

The rest matches.

@miniupnp miniupnp self-assigned this Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants