Better os() directives

Signed-off-by: Roopesh Chander <roop@roopc.net>
This commit is contained in:
Roopesh Chander committed 2019-01-22 04:06:37 +05:30
1 parent e2b068af1a
commit 273ee04450
4 files changed
+21 -7

No files matched your search

@@ -81,8 +81,10 @@ class PacketTunnelSettingsGenerator {
if mtu == 0 {
#if os(iOS)
networkSettings.mtu = NSNumber(value: 1280)
#elseif os(OSX)
#elseif os(macOS)
networkSettings.tunnelOverheadBytes = 80
#else
#error("Unimplemented")
#endif
} else {
networkSettings.mtu = NSNumber(value: mtu)