Commit f41b2396 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 0ed1041c
......@@ -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
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment