summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStreusel <streusel@gravity.co.kr>2014-07-08 22:49:50 -0700
committerStreusel <streusel@gravity.co.kr>2014-07-08 22:49:50 -0700
commitbce716fa908584f435dcf97904fb37ada6dd90b7 (patch)
tree978d1eb10ac9beba1ed547d9fa973b8f51aa1af8
parente829011073ff9906542b1bc0f5615f714c91eff0 (diff)
downloadhercules-bce716fa908584f435dcf97904fb37ada6dd90b7.tar.gz
hercules-bce716fa908584f435dcf97904fb37ada6dd90b7.tar.bz2
hercules-bce716fa908584f435dcf97904fb37ada6dd90b7.tar.xz
hercules-bce716fa908584f435dcf97904fb37ada6dd90b7.zip
reversed portion of 7cd967f812ab741c41c416fb9f7c2a921c36e947 that would point to nothing.
-rw-r--r--src/common/thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/thread.c b/src/common/thread.c
index 933ee2c0e..b97eecb44 100644
--- a/src/common/thread.c
+++ b/src/common/thread.c
@@ -10,13 +10,13 @@
#include "thread.h"
-#include "../common/sysinfo.h" // sysinfo->getpagesize()
#include "../common/cbasetypes.h"
#include "../common/malloc.h"
#include "../common/showmsg.h"
#ifdef WIN32
# include "../common/winapi.h"
+# define getpagesize() 4096 // @TODO: implement this properly (GetSystemInfo .. dwPageSize..). (Atm as on all supported win platforms its 4k its static.)
# define __thread __declspec( thread )
#else
# include <pthread.h>
@@ -169,7 +169,7 @@ rAthread rathread_createEx( rAthreadProc entryPoint, void *param, size_t szSta
// given stacksize aligned to systems pagesize?
- tmp = szStack % sysinfo->getpagesize();
+ tmp = szStack % getpagesize();
if(tmp != 0)
szStack += tmp;