author | Rich Felker <dalias@aerifal.cx> | 2018年02月25日 21:13:38 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2018年02月25日 21:17:48 -0500 |
commit | 57b97b42bdecafd81c4967a10aef6eaf43d3fcb8 (patch) | |
tree | 477e999aaff92024254d99a6f4ea6805f586fd31 | |
parent | 2fae10f887b48b809bac56e4ff8a5c3fd4525de3 (diff) | |
download | musl-57b97b42bdecafd81c4967a10aef6eaf43d3fcb8.tar.gz |
-rw-r--r-- | src/errno/__errno_location.c | 1 | ||||
-rw-r--r-- | src/misc/gethostid.c | 2 | ||||
-rw-r--r-- | src/signal/sigrtmin.c | 2 | ||||
-rw-r--r-- | src/stdlib/abs.c | 2 | ||||
-rw-r--r-- | src/stdlib/labs.c | 2 | ||||
-rw-r--r-- | src/stdlib/llabs.c | 2 |
diff --git a/src/errno/__errno_location.c b/src/errno/__errno_location.c index 7172a1be..ad9f9241 100644 --- a/src/errno/__errno_location.c +++ b/src/errno/__errno_location.c @@ -1,3 +1,4 @@ +#include <errno.h> #include "pthread_impl.h" int *__errno_location(void) diff --git a/src/misc/gethostid.c b/src/misc/gethostid.c index ea65611a..25bb35db 100644 --- a/src/misc/gethostid.c +++ b/src/misc/gethostid.c @@ -1,3 +1,5 @@ +#include <unistd.h> + long gethostid() { return 0; diff --git a/src/signal/sigrtmin.c b/src/signal/sigrtmin.c index d0e769bb..c5a1fd92 100644 --- a/src/signal/sigrtmin.c +++ b/src/signal/sigrtmin.c @@ -1,3 +1,5 @@ +#include <signal.h> + int __libc_current_sigrtmin() { return 35; diff --git a/src/stdlib/abs.c b/src/stdlib/abs.c index 4806d629..e721fdc2 100644 --- a/src/stdlib/abs.c +++ b/src/stdlib/abs.c @@ -1,3 +1,5 @@ +#include <stdlib.h> + int abs(int a) { return a>0 ? a : -a; diff --git a/src/stdlib/labs.c b/src/stdlib/labs.c index 675b95b8..83ddb147 100644 --- a/src/stdlib/labs.c +++ b/src/stdlib/labs.c @@ -1,3 +1,5 @@ +#include <stdlib.h> + long labs(long a) { return a>0 ? a : -a; diff --git a/src/stdlib/llabs.c b/src/stdlib/llabs.c index bec4a03d..9dfaf5cf 100644 --- a/src/stdlib/llabs.c +++ b/src/stdlib/llabs.c @@ -1,3 +1,5 @@ +#include <stdlib.h> + long long llabs(long long a) { return a>0 ? a : -a; |