From e76c3b08e105147e3cef7e8d38d65da2fac6b2e1 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Thu, 5 Apr 2001 03:14:39 +0000 Subject: A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can handle them sanely and all at once. -Erik --- adjtimex.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'adjtimex.c') diff --git a/adjtimex.c b/adjtimex.c index 02b6e89b0..e3c160d87 100644 --- a/adjtimex.c +++ b/adjtimex.c @@ -44,7 +44,14 @@ #include #include #include + +#if __GNU_LIBRARY__ < 5 +#include +extern int adjtimex(struct timex *buf); +#else #include +#endif + #ifdef BB_VER #include "busybox.h" #endif @@ -163,7 +170,7 @@ int main(int argc, char ** argv) " return value: %d (%s)\n", txc.constant, txc.precision, txc.tolerance, txc.tick, - txc.time.tv_sec, txc.time.tv_usec, ret, descript); + (long)txc.time.tv_sec, (long)txc.time.tv_usec, ret, descript); } return (ret<0); } -- cgit v1.2.3