Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
f41b2396
Commit
f41b2396
authored
Apr 01, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Don't export mmap functions for the Windows build.
parent
0ed1041c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
24 deletions
+10
-24
mmap.c
libs/wine/mmap.c
+10
-19
wine.def
libs/wine/wine.def
+0
-5
No files found.
libs/wine/mmap.c
View file @
f41b2396
...
@@ -41,6 +41,8 @@
...
@@ -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
...
@@ -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)
...
@@ -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
...
@@ -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
libs/wine/wine.def
View file @
f41b2396
...
@@ -49,7 +49,6 @@ EXPORTS
...
@@ -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
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment