Fix gtk build
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 04:47:32 +0000 (04:47 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Dec 2007 04:47:32 +0000 (04:47 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@28435 268f45cc-cd09-0410-ab3c-d52691b4dbfc

JavaScriptCore/ChangeLog
JavaScriptCore/wtf/TCSystemAlloc.cpp

index f554a23..42997c7 100644 (file)
@@ -1,3 +1,11 @@
+2007-12-04  Oliver Hunt  <oliver@apple.com>
+
+        Reviewed by NOBODY (Build fix).
+
+        Fix gtk build.
+
+        * wtf/TCSystemAlloc.cpp:
+
 2007-12-03  Oliver Hunt  <oliver@apple.com>
 
         Reviewed by Mark Rowe and Geoff Garen.
index a5bf9ac..0b29cab 100644 (file)
 #if PLATFORM(WIN_OS)
 #include "windows.h"
 #else
+#include <errno.h>
 #include <unistd.h>
 #include <sys/mman.h>
 #endif
 #include <fcntl.h>
+#include "Assertions.h"
 #include "TCSystemAlloc.h"
 #include "TCSpinLock.h"
 
@@ -73,8 +75,15 @@ static size_t pagesize = 0;
 #ifndef WTF_CHANGES
 static bool use_devmem = false;
 #endif
+
+#if HAVE(SBRK)
 static bool use_sbrk = false;
+#endif
+
+#if HAVE(MMAP)
 static bool use_mmap = true;
+#endif 
+
 #if HAVE(VIRTUALALLOC)
 static bool use_VirtualAlloc = true;
 #endif