Jelajahi Sumber

* Don't define PAGESIZE until it's not defined and we need it

svn: 1920
Bryan Drewery 21 tahun lalu
induk
melakukan
468968b58e
1 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 4 1
      src/debug.c

+ 4 - 1
src/debug.c

@@ -28,7 +28,6 @@
 #include <stdarg.h>
 #include <errno.h>
 #include <sys/mman.h>
-#define PAGESIZE 4096
 
 bool		sdebug = 0;             /* enable debug output? */
 
@@ -138,6 +137,10 @@ static void got_bus(int z)
 
 #ifndef CYGWIN_HACKS
 #ifdef __i386__
+#ifndef PAGESIZE
+#define PAGESIZE 4096
+#endif
+
 struct stackframe {
   struct stackframe *ebp;
   unsigned long addr;