diff options
author | Nicholas Corgan <nick.corgan@ettus.com> | 2015-07-20 11:16:10 -0700 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2015-07-20 13:06:13 -0700 |
commit | 8603c6a3eeb114081bae40eac2b8c45d05e96f66 (patch) | |
tree | a0acbeb37c92b050df7cd3ec5afb78d29652e4e0 /host/include | |
parent | 88df5f04c0fc095cb080e5fc666c946557f73c3f (diff) | |
download | uhd-8603c6a3eeb114081bae40eac2b8c45d05e96f66.tar.gz uhd-8603c6a3eeb114081bae40eac2b8c45d05e96f66.tar.bz2 uhd-8603c6a3eeb114081bae40eac2b8c45d05e96f66.zip |
nirio: fixed defines for OS X vs. other unsupported platforms (master)
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/transport/nirio/nirio_driver_iface.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/host/include/uhd/transport/nirio/nirio_driver_iface.h b/host/include/uhd/transport/nirio/nirio_driver_iface.h index c562f0ca5..2668c10b9 100644 --- a/host/include/uhd/transport/nirio/nirio_driver_iface.h +++ b/host/include/uhd/transport/nirio/nirio_driver_iface.h @@ -32,7 +32,7 @@ #ifdef _MSC_VER #pragma warning(default:4201) #endif -#elif !defined(UHD_PLATFORM_LINUX) +#elif defined(UHD_PLATFORM_MACOS) #include <IOKit/IOKitLib.h> #endif @@ -85,8 +85,10 @@ const uint32_t NIRIO_IOCTL_PRE_CLOSE = typedef int rio_dev_handle_t; #elif defined(UHD_PLATFORM_WIN32) typedef HANDLE rio_dev_handle_t; -#else +#elif defined(UHD_PLATFORM_MACOS) typedef io_connect_t rio_dev_handle_t; +#else + typedef int rio_dev_handle_t; #endif static const rio_dev_handle_t INVALID_RIO_HANDLE = ((rio_dev_handle_t)-1); |