aboutsummaryrefslogtreecommitdiffstats
path: root/host/lib/utils
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-04-06 09:55:54 -0700
committerJosh Blum <josh@joshknows.com>2011-04-06 09:55:54 -0700
commit74fc8946688d53ccd5d067d3f86e26b990af1bd4 (patch)
tree901e051e2724cc021bc695e0d7df209ea50d06ec /host/lib/utils
parentdbfbc497a8e0a144e0db2b8daa0f4baba5284775 (diff)
downloaduhd-74fc8946688d53ccd5d067d3f86e26b990af1bd4.tar.gz
uhd-74fc8946688d53ccd5d067d3f86e26b990af1bd4.tar.bz2
uhd-74fc8946688d53ccd5d067d3f86e26b990af1bd4.zip
uhd: always link winsock2 on windows, disable pthread SCHED_RR for cygwin
Diffstat (limited to 'host/lib/utils')
-rw-r--r--host/lib/utils/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/host/lib/utils/CMakeLists.txt b/host/lib/utils/CMakeLists.txt
index c0d99b37e..26c02b5b4 100644
--- a/host/lib/utils/CMakeLists.txt
+++ b/host/lib/utils/CMakeLists.txt
@@ -36,6 +36,11 @@ CHECK_CXX_SOURCE_COMPILES("
" HAVE_PTHREAD_SETSCHEDPARAM
)
+IF(CYGWIN)
+ #SCHED_RR non-operational on cygwin
+ SET(HAVE_PTHREAD_SETSCHEDPARAM False)
+ENDIF(CYGWIN)
+
CHECK_CXX_SOURCE_COMPILES("
#include <windows.h>
int main(){