diff --git a/HoRNDIS.cpp b/HoRNDIS.cpp index 9da3e18..b556872 100644 --- a/HoRNDIS.cpp +++ b/HoRNDIS.cpp @@ -581,7 +581,7 @@ UInt32 HoRNDIS::outputPacket(mbuf_t packet, void *param) { /* Find an output buffer in the pool */ IOLockLock(outbuf_lock); for (i = 0; i < OUT_BUF_MAX_TRIES; i++) { - AbsoluteTime ivl, deadl; + uint64_t ivl, deadl; for (poolIndx = 0; poolIndx < N_OUT_BUFS; poolIndx++) if (!outbufs[poolIndx].inuse) { @@ -595,7 +595,8 @@ UInt32 HoRNDIS::outputPacket(mbuf_t packet, void *param) { nanoseconds_to_absolutetime(OUT_BUF_WAIT_TIME, &ivl); clock_absolutetime_interval_to_deadline(ivl, &deadl); LOG(V_NOTE, "waiting for buffer..."); - IOLockSleepDeadline(outbuf_lock, outbufs, deadl, THREAD_INTERRUPTIBLE); + + IOLockSleepDeadline(outbuf_lock, outbufs, *(AbsoluteTime *)&deadl, THREAD_INTERRUPTIBLE); } IOLockUnlock(outbuf_lock); diff --git a/HoRNDIS.xcodeproj/project.pbxproj b/HoRNDIS.xcodeproj/project.pbxproj index 4016cf0..042a319 100644 --- a/HoRNDIS.xcodeproj/project.pbxproj +++ b/HoRNDIS.xcodeproj/project.pbxproj @@ -192,7 +192,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_WARN_EMPTY_BODY = YES; @@ -221,7 +221,7 @@ isa = XCBuildConfiguration; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; CLANG_CXX_LIBRARY = "libc++"; CLANG_WARN_EMPTY_BODY = YES; @@ -242,7 +242,7 @@ 42BCD8B81645AFC500683BF7 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; COMBINE_HIDPI_IMAGES = YES; CURRENT_PROJECT_VERSION = 1.0.0d1; GCC_PRECOMPILE_PREFIX_HEADER = YES; @@ -261,7 +261,7 @@ 42BCD8B91645AFC500683BF7 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { - ARCHS = "$(ARCHS_STANDARD_64_BIT)"; + ARCHS = "$(ARCHS_STANDARD_32_64_BIT)"; COMBINE_HIDPI_IMAGES = YES; CURRENT_PROJECT_VERSION = 1.0.0d1; GCC_PRECOMPILE_PREFIX_HEADER = YES; diff --git a/package/HoRNDIS.pmdoc/index.xml b/package/HoRNDIS.pmdoc/index.xml index 3ad66b8..0402177 100644 --- a/package/HoRNDIS.pmdoc/index.xml +++ b/package/HoRNDIS.pmdoc/index.xml @@ -1 +1 @@ -HoRNDIS/Users/joshua/projects/horndis/HoRNDIS/HoRNDIS.pkgcom.joshuawiseHoRNDIS is a kernel extension ("kext") that allows you to use your Android phone's built-in USB tethering support.../COPYING.rtfintro-text.rtfpost-readme.rtfFailureHoRNDIS supports only Snow Leopard and newer systems.com.joshuawise.kexts.HoRNDIScomponent01horndis.xmldescriptionproperties.titleproperties.systemDomainproperties.userDomainpostinstallActions.actionsextraFilesproperties.customizeOptionproperties.anywhereDomain \ No newline at end of file +HoRNDIS/Users/joshua/projects/horndis/HoRNDIS/HoRNDIS.pkgcom.joshuawiseHoRNDIS is a kernel extension ("kext") that allows you to use your Android phone's built-in USB tethering support.../COPYING.rtfintro-text.rtfpost-readme.rtfFailureHoRNDIS supports only Snow Leopard and newer systems.hw.machine64-bit kernel neededHoRNDIS requires a 64-bit kernel to run. For more information, visit: http://joshuawise.com/horndis#64bitcom.joshuawise.kexts.HoRNDIScomponent01horndis.xmldescriptionproperties.titleproperties.anywhereDomainproperties.userDomainpostinstallActions.actionsextraFilesproperties.customizeOptionproperties.systemDomain \ No newline at end of file