diff options
author | Rob Landley <rob@landley.net> | 2021-11-05 23:45:29 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2021-11-05 23:46:54 -0500 |
commit | f8883bd296bb6dad1f4bd90dba806877eaa32ba4 (patch) | |
tree | 4a3792a83a8857f88e892f4fed3ff3613128ed52 /lib | |
parent | 52e27717aedce6da25ec8f2f035736d56dbdc005 (diff) | |
download | toybox-f8883bd296bb6dad1f4bd90dba806877eaa32ba4.tar.gz |
Yank -lrt linking entirely: when statically linked it pulls in pthreads for non-threaded programs, and neither bionic nor musl have it. (This means glibc always does the HASTIMERS syscall wrap.)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portability.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h index ac3d0f12..67727f9c 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -389,6 +389,8 @@ int timer_create(clock_t c, struct sigevent *se, timer_t *t); int timer_settime(timer_t t, int flags, struct itimerspec *new, void *old); #elif !CFG_TOYBOX_HASTIMERS #include <syscall.h> +#include <signal.h> +#include <time.h> int timer_create_wrap(clockid_t c, struct sigevent *se, timer_t *t); #define timer_create(...) timer_create_wrap(__VA_ARGS__) int timer_settime_wrap(timer_t t, int flags, struct itimerspec *val, |