Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
02e6f7d1
Commit
02e6f7d1
authored
Jan 06, 2014
by
André Hentschel
Committed by
Alexandre Julliard
Jan 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Added LDT support for GNU/Hurd.
Based on a patch by Andrew Nguyen.
parent
84df351b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ldt.c
libs/wine/ldt.c
+8
-0
No files found.
libs/wine/ldt.c
View file @
02e6f7d1
...
...
@@ -92,6 +92,11 @@ static inline int set_thread_area( struct modify_ldt_s *ptr )
#include <machine/sysarch.h>
#endif
/* __NetBSD__ || __FreeBSD__ || __OpenBSD__ */
#ifdef __GNU__
#include <mach/i386/mach_i386.h>
#include <mach/mach_traps.h>
#endif
#ifdef __APPLE__
#include <i386/user_ldt.h>
#endif
...
...
@@ -203,6 +208,9 @@ static int internal_set_entry( unsigned short sel, const LDT_ENTRY *entry )
#elif defined(__APPLE__)
if
((
ret
=
i386_set_ldt
(
index
,
(
union
ldt_entry
*
)
entry
,
1
))
<
0
)
perror
(
"i386_set_ldt"
);
#elif defined(__GNU__)
if
((
ret
=
i386_set_ldt
(
mach_thread_self
(),
sel
,
(
descriptor_list_t
)
entry
,
1
))
!=
KERN_SUCCESS
)
perror
(
"i386_set_ldt"
);
#else
fprintf
(
stderr
,
"No LDT support on this platform
\n
"
);
exit
(
1
);
...
...
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