cmake: Fix build warning on OpenIndiana.
authorAndreas Schneider <asn@cryptomilk.org>
Mon, 15 Oct 2012 17:39:39 +0000 (19:39 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 15 Oct 2012 17:39:39 +0000 (19:39 +0200)
ConfigureChecks.cmake

index 798e95f..6e52232 100644 (file)
@@ -40,6 +40,11 @@ if(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW)
     endif (NOT GNUCC_VERSION EQUAL 34)
 endif(CMAKE_COMPILER_IS_GNUCC AND NOT MINGW)
 
+# DEFINITIONS
+if (SOLARIS)
+    add_definitions(-D__EXTENSIONS__)
+endif (SOLARIS)
+
 # HEADER FILES
 check_include_file(assert.h HAVE_ASSERT_H)
 check_include_file(dlfcn.h HAVE_DLFCN_H)