Browse Source

win32/vc build fix

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@153 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
1.1
Xuefer 15 years ago
parent
commit
f7c115c405
  1. 2
      xc_malloc.c
  2. 10
      xc_shm.c

2
xc_malloc.c

@ -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) {

10
xc_shm.c

@ -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();
}
/* }}} */

Loading…
Cancel
Save