mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 19:15:38 +00:00
libwine: Don't export mmap functions for the Windows build.
This commit is contained in:
parent
0ed1041c63
commit
f41b239645
|
@ -41,6 +41,8 @@
|
||||||
#include "wine/library.h"
|
#include "wine/library.h"
|
||||||
#include "wine/list.h"
|
#include "wine/list.h"
|
||||||
|
|
||||||
|
#ifdef HAVE_MMAP
|
||||||
|
|
||||||
struct reserved_area
|
struct reserved_area
|
||||||
{
|
{
|
||||||
struct list entry;
|
struct list entry;
|
||||||
|
@ -51,8 +53,6 @@ struct reserved_area
|
||||||
static struct list reserved_areas = LIST_INIT(reserved_areas);
|
static struct list reserved_areas = LIST_INIT(reserved_areas);
|
||||||
static const unsigned int granularity_mask = 0xffff; /* reserved areas have 64k granularity */
|
static const unsigned int granularity_mask = 0xffff; /* reserved areas have 64k granularity */
|
||||||
|
|
||||||
#ifdef HAVE_MMAP
|
|
||||||
|
|
||||||
#ifndef MAP_NORESERVE
|
#ifndef MAP_NORESERVE
|
||||||
#define MAP_NORESERVE 0
|
#define MAP_NORESERVE 0
|
||||||
#endif
|
#endif
|
||||||
|
@ -390,23 +390,6 @@ void mmap_init(void)
|
||||||
reserve_dos_area();
|
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
|
* 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;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#else /* HAVE_MMAP */
|
||||||
|
|
||||||
|
void mmap_init(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -49,7 +49,6 @@ EXPORTS
|
||||||
toupperW
|
toupperW
|
||||||
vsnprintfW
|
vsnprintfW
|
||||||
vsprintfW
|
vsprintfW
|
||||||
wine_anon_mmap
|
|
||||||
wine_call_on_stack
|
wine_call_on_stack
|
||||||
wine_casemap_lower
|
wine_casemap_lower
|
||||||
wine_casemap_upper
|
wine_casemap_upper
|
||||||
|
@ -96,10 +95,6 @@ EXPORTS
|
||||||
wine_ldt_is_system
|
wine_ldt_is_system
|
||||||
wine_ldt_realloc_entries
|
wine_ldt_realloc_entries
|
||||||
wine_ldt_set_entry
|
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_get_functions
|
||||||
wine_pthread_set_functions
|
wine_pthread_set_functions
|
||||||
wine_switch_to_stack
|
wine_switch_to_stack
|
||||||
|
|
Loading…
Reference in a new issue