Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libc
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
felixmoebius
libc
Commits
1cf98aec
Commit
1cf98aec
authored
9 years ago
by
Alex Crichton
Browse files
Options
Downloads
Patches
Plain Diff
Get MUSL working
parent
9e97afd9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
libc-test/build.rs
+4
-2
4 additions, 2 deletions
libc-test/build.rs
src/linuxlike/linux.rs
+2
-0
2 additions, 0 deletions
src/linuxlike/linux.rs
with
6 additions
and
2 deletions
libc-test/build.rs
+
4
−
2
View file @
1cf98aec
...
...
@@ -43,7 +43,7 @@ impl<'a> TestGenerator<'a> {
let
mut
ret
=
Vec
::
new
();
// Pull in extra goodies on linux
if
self
.target
.contains
(
"unknown-linux"
)
{
if
self
.target
.contains
(
"unknown-linux
-gnu
"
)
{
ret
.push
(
"_GNU_SOURCE"
);
}
...
...
@@ -211,8 +211,10 @@ impl<'a> TestGenerator<'a> {
}
else
{
panic!
(
"unknown arch/pointer width: {}"
,
self
.target
)
};
let
(
os
,
family
,
env
)
=
if
self
.target
.contains
(
"unknown-linux"
)
{
let
(
os
,
family
,
env
)
=
if
self
.target
.contains
(
"unknown-linux
-gnu
"
)
{
(
"linux"
,
"unix"
,
"gnu"
)
}
else
if
self
.target
.contains
(
"unknown-linux-musl"
)
{
(
"linux"
,
"unix"
,
"musl"
)
}
else
if
self
.target
.contains
(
"apple-darwin"
)
{
(
"macos"
,
"unix"
,
""
)
}
else
if
self
.target
.contains
(
"windows-msvc"
)
{
...
...
This diff is collapsed.
Click to expand it.
src/linuxlike/linux.rs
+
2
−
0
View file @
1cf98aec
...
...
@@ -120,6 +120,8 @@ pub const _SC_XOPEN_REALTIME_THREADS: ::c_int = 131;
pub
const
RLIMIT_NLIMITS
:
::
c_int
=
16
;
pub
const
RLIM_SAVED_MAX
:
::
rlim_t
=
::
RLIM_INFINITY
;
pub
const
RLIM_SAVED_CUR
:
::
rlim_t
=
::
RLIM_INFINITY
;
#[cfg(not(target_env
=
"musl"
))]
pub
const
RUSAGE_THREAD
:
::
c_int
=
1
;
pub
const
GLOB_ERR
:
::
c_int
=
1
<<
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment