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
a4493851
Commit
a4493851
authored
Mar 22, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader: Remove a check for antediluvian glibc.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
077fc97a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
38 deletions
+0
-38
main.c
loader/main.c
+0
-38
No files found.
loader/main.c
View file @
a4493851
...
...
@@ -36,7 +36,6 @@
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
#include <pthread.h>
#include "wine/library.h"
#include "main.h"
...
...
@@ -87,42 +86,6 @@ static int pre_exec(void)
#elif defined(__linux__) && (defined(__i386__) || defined(__arm__))
#ifdef __i386__
/* separate thread to check for NPTL and TLS features */
static
void
*
needs_pthread
(
void
*
arg
)
{
pid_t
tid
=
syscall
(
224
/* SYS_gettid */
);
/* check for NPTL */
if
(
tid
!=
-
1
&&
tid
!=
getpid
())
return
(
void
*
)
1
;
/* check for TLS glibc */
if
(
wine_get_gs
()
!=
0
)
return
(
void
*
)
1
;
/* check for exported epoll_create to detect new glibc versions without TLS */
if
(
wine_dlsym
(
RTLD_DEFAULT
,
"epoll_create"
,
NULL
,
0
))
fprintf
(
stderr
,
"wine: glibc >= 2.3 without NPTL or TLS is not a supported combination.
\n
"
" Please upgrade to a glibc with NPTL support.
\n
"
);
else
fprintf
(
stderr
,
"wine: Your C library is too old. You need at least glibc 2.3 with NPTL support.
\n
"
);
return
0
;
}
/* check if we support the glibc threading model */
static
void
check_threading
(
void
)
{
pthread_t
id
;
void
*
ret
;
pthread_create
(
&
id
,
NULL
,
needs_pthread
,
NULL
);
pthread_join
(
id
,
&
ret
);
if
(
!
ret
)
exit
(
1
);
}
#else
static
void
check_threading
(
void
)
{
}
#endif
static
void
check_vmsplit
(
void
*
stack
)
{
if
(
stack
<
(
void
*
)
0x80000000
)
...
...
@@ -150,7 +113,6 @@ static int pre_exec(void)
{
int
temp
;
check_threading
();
check_vmsplit
(
&
temp
);
set_max_limit
(
RLIMIT_AS
);
#ifdef __i386__
...
...
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