]> git.donarmstrong.com Git - bamtools.git/commitdiff
Include header sys/filio.h for SunOS. Otherwise TcpSocketEngine_unix_p.cpp does not...
authorTobias Marschall <T.Marschall@cwi.nl>
Tue, 27 Mar 2012 16:28:02 +0000 (18:28 +0200)
committerTobias Marschall <T.Marschall@cwi.nl>
Tue, 27 Mar 2012 16:28:02 +0000 (18:28 +0200)
CMakeLists.txt
src/api/internal/io/TcpSocketEngine_unix_p.cpp

index 8deded9166da085bb94a1726d2732a3dfaaa204d..f5b9403f13a1deaecb485365a103b50462bbf880 100644 (file)
@@ -41,6 +41,9 @@ set( LIBRARY_OUTPUT_PATH    "${CMAKE_SOURCE_DIR}/lib" )
 # define compiler flags for all code
 set( CMAKE_BUILD_TYPE Release )
 add_definitions( -Wall -D_FILE_OFFSET_BITS=64 )
+if( "${CMAKE_SYSTEM_NAME}" MATCHES "SunOS" )
+       add_definitions( -DSUN_OS )
+endif()
 
 # add our includes root path
 include_directories( src )
index 5b100e48b2ea90874e1d644024d9474aa681147b..cf598af4ab41baaa644a464c06fab621c38b369c 100644 (file)
 using namespace BamTools;
 using namespace BamTools::Internal;
 
+#ifdef SUN_OS
+#include <sys/filio.h> 
+#endif
+
 #include <cerrno>
 #include <ctime>
 #include <iostream>