libwine: Don't export mmap functions for the Windows build.

This commit is contained in:
Alexandre Julliard 2009-04-01 20:27:59 +02:00
parent 0ed1041c63
commit f41b239645
2 changed files with 10 additions and 24 deletions

View File

@ -41,6 +41,8 @@
#include "wine/library.h"
#include "wine/list.h"
#ifdef HAVE_MMAP
struct reserved_area
{
struct list entry;
@ -51,8 +53,6 @@ struct reserved_area
static struct list reserved_areas = LIST_INIT(reserved_areas);
static const unsigned int granularity_mask = 0xffff; /* reserved areas have 64k granularity */
#ifdef HAVE_MMAP
#ifndef MAP_NORESERVE
#define MAP_NORESERVE 0
#endif
@ -390,23 +390,6 @@ void mmap_init(void)
reserve_dos_area();
}
#else /* HAVE_MMAP */
void *wine_anon_mmap( void *start, size_t size, int prot, int flags )
{
return (void *)-1;
}
static inline int munmap( void *ptr, size_t size )
{
return 0;
}
void mmap_init(void)
{
}
#endif
/***********************************************************************
* wine_mmap_add_reserved_area
@ -602,3 +585,11 @@ int wine_mmap_enum_reserved_areas( int (*enum_func)(void *base, size_t size, voi
}
return ret;
}
#else /* HAVE_MMAP */
void mmap_init(void)
{
}
#endif

View File

@ -49,7 +49,6 @@ EXPORTS
toupperW
vsnprintfW
vsprintfW
wine_anon_mmap
wine_call_on_stack
wine_casemap_lower
wine_casemap_upper
@ -96,10 +95,6 @@ EXPORTS
wine_ldt_is_system
wine_ldt_realloc_entries
wine_ldt_set_entry
wine_mmap_add_reserved_area
wine_mmap_enum_reserved_areas
wine_mmap_is_in_reserved_area
wine_mmap_remove_reserved_area
wine_pthread_get_functions
wine_pthread_set_functions
wine_switch_to_stack