From c21fa98ba572754495a5a156449f62b7862536d1 Mon Sep 17 00:00:00 2001 From: castano Date: Fri, 26 Nov 2010 08:47:48 +0000 Subject: [PATCH] Fix Linux build. --- src/CMakeLists.txt | 12 ++++++------ src/nvcore/DefsGnucLinux.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bb7a851..2746db7 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -136,12 +136,12 @@ MESSAGE(STATUS "Use thread library: ${CMAKE_THREAD_LIBS_INIT}") # configuration file INCLUDE(CheckIncludeFiles) -CHECK_INCLUDE_FILES(unistd.h HAVE_UNISTD_H) -CHECK_INCLUDE_FILES(stdarg.h HAVE_STDARG_H) -CHECK_INCLUDE_FILES(signal.h HAVE_SIGNAL_H) -CHECK_INCLUDE_FILES(execinfo.h HAVE_EXECINFO_H) -CHECK_INCLUDE_FILES(malloc.h HAVE_MALLOC_H) -CHECK_INCLUDE_FILES(dispatch/dispatch.h HAVE_DISPATCH_H) +CHECK_INCLUDE_FILES("unistd.h" HAVE_UNISTD_H) +CHECK_INCLUDE_FILES("stdarg.h" HAVE_STDARG_H) +CHECK_INCLUDE_FILES("signal.h" HAVE_SIGNAL_H) +CHECK_INCLUDE_FILES("execinfo.h" HAVE_EXECINFO_H) +CHECK_INCLUDE_FILES("malloc.h" HAVE_MALLOC_H) +CHECK_INCLUDE_FILES("dispatch/dispatch.h" HAVE_DISPATCH_H) CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/nvconfig.h.in ${CMAKE_CURRENT_BINARY_DIR}/nvconfig.h) diff --git a/src/nvcore/DefsGnucLinux.h b/src/nvcore/DefsGnucLinux.h index 1451232..15cfffc 100644 --- a/src/nvcore/DefsGnucLinux.h +++ b/src/nvcore/DefsGnucLinux.h @@ -2,7 +2,7 @@ #error "Do not include this file directly." #endif -//#include // size_t, NULL +#include // operator new, size_t, NULL // Function linkage #define DLL_IMPORT