1
0
Fork 0

win32/vc build fix

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@153 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
This commit is contained in:
Xuefer 2006-09-10 02:14:39 +00:00
parent 6babaf0481
commit f7c115c405
2 changed files with 4 additions and 8 deletions

View File

@ -86,8 +86,6 @@ XC_MEM_BLOCK_OFFSET(xc_malloc_block_offset) /* {{{ */
static XC_MEM_INIT(xc_mem_malloc_init) /* {{{ */
{
xc_block_t *b;
#define MINSIZE (ALIGN(sizeof(xc_mem_t)))
/* requires at least the header and 1 tail block */
if (size < MINSIZE) {

View File

@ -18,15 +18,13 @@ static xc_shm_scheme_t xc_shm_schemes[10];
void xc_shm_init_modules() /* {{{ */
{
memset(xc_shm_schemes, 0, sizeof(xc_shm_schemes));
extern void xc_shm_mem_init();
xc_shm_mem_init();
extern void xc_shm_malloc_register();
xc_shm_malloc_register();
extern void xc_shm_mmap_register();
memset(xc_shm_schemes, 0, sizeof(xc_shm_schemes));
xc_shm_mem_init();
xc_shm_malloc_register();
xc_shm_mmap_register();
}
/* }}} */