diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/adjtimex.c | 9 | ||||
-rw-r--r-- | miscutils/update.c | 8 |
2 files changed, 11 insertions, 6 deletions
diff --git a/miscutils/adjtimex.c b/miscutils/adjtimex.c index 02b6e89b0..e3c160d87 100644 --- a/miscutils/adjtimex.c +++ b/miscutils/adjtimex.c | |||
@@ -44,7 +44,14 @@ | |||
44 | #include <sys/types.h> | 44 | #include <sys/types.h> |
45 | #include <stdlib.h> | 45 | #include <stdlib.h> |
46 | #include <unistd.h> | 46 | #include <unistd.h> |
47 | |||
48 | #if __GNU_LIBRARY__ < 5 | ||
49 | #include <sys/timex.h> | ||
50 | extern int adjtimex(struct timex *buf); | ||
51 | #else | ||
47 | #include <sys/timex.h> | 52 | #include <sys/timex.h> |
53 | #endif | ||
54 | |||
48 | #ifdef BB_VER | 55 | #ifdef BB_VER |
49 | #include "busybox.h" | 56 | #include "busybox.h" |
50 | #endif | 57 | #endif |
@@ -163,7 +170,7 @@ int main(int argc, char ** argv) | |||
163 | " return value: %d (%s)\n", | 170 | " return value: %d (%s)\n", |
164 | txc.constant, | 171 | txc.constant, |
165 | txc.precision, txc.tolerance, txc.tick, | 172 | txc.precision, txc.tolerance, txc.tick, |
166 | txc.time.tv_sec, txc.time.tv_usec, ret, descript); | 173 | (long)txc.time.tv_sec, (long)txc.time.tv_usec, ret, descript); |
167 | } | 174 | } |
168 | return (ret<0); | 175 | return (ret<0); |
169 | } | 176 | } |
diff --git a/miscutils/update.c b/miscutils/update.c index b282b9e18..ce2b6cf08 100644 --- a/miscutils/update.c +++ b/miscutils/update.c | |||
@@ -33,14 +33,12 @@ | |||
33 | #include <unistd.h> /* for getopt() */ | 33 | #include <unistd.h> /* for getopt() */ |
34 | #include <stdlib.h> | 34 | #include <stdlib.h> |
35 | 35 | ||
36 | |||
37 | #if defined(__GLIBC__) | 36 | #if defined(__GLIBC__) |
38 | #include <sys/kdaemon.h> | 37 | #include <sys/kdaemon.h> |
39 | #else | 38 | #else |
40 | #include <sys/syscall.h> | 39 | extern int bdflush (int func, long int data); |
41 | #include <linux/unistd.h> | 40 | #endif /* __GLIBC__ */ |
42 | static _syscall2(int, bdflush, int, func, int, data); | 41 | |
43 | #endif /* __GLIBC__ */ | ||
44 | #include "busybox.h" | 42 | #include "busybox.h" |
45 | 43 | ||
46 | static unsigned int sync_duration = 30; | 44 | static unsigned int sync_duration = 30; |