aboutsummaryrefslogtreecommitdiff
path: root/adjtimex.c
diff options
context:
space:
mode:
authorandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-05 03:14:39 +0000
committerandersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-04-05 03:14:39 +0000
commit01d0083a639d6b91298c62b9e67b803fe9b9a36d (patch)
tree87f705b9e4e4e48700ac61e9538c637ae2b395a7 /adjtimex.c
parentea8519ec8a9e6807e16ca3a138d22201d35b273b (diff)
downloadbusybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.tar.gz
busybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.tar.bz2
busybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.zip
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 git-svn-id: svn://busybox.net/trunk/busybox@2250 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'adjtimex.c')
-rw-r--r--adjtimex.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/adjtimex.c b/adjtimex.c
index 02b6e89b0..e3c160d87 100644
--- a/adjtimex.c
+++ b/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>
50extern 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}