diff options
Diffstat (limited to 'time')
-rw-r--r-- | time/Makefile | 9 | ||||
-rw-r--r-- | time/sys/time.h | 12 |
2 files changed, 11 insertions, 10 deletions
diff --git a/time/Makefile b/time/Makefile index 7eeedd4e53..e29a50b4d6 100644 --- a/time/Makefile +++ b/time/Makefile @@ -121,8 +121,13 @@ target-zone-flavor = $(filter /posix /right, \ ifdef localtime $(installed-localtime-file): $(zonedir)/$(localtime) $(objpfx)zic $(make-target-directory) - if test -r $@; then echo Site timezone NOT reset to Factory.; else \ - ln -s -f $< $@; fi + if test -r $@; then \ + echo Site timezone NOT reset to Factory.; \ + else \ + rm -f $@T; \ + $(SHELL) $(common-objpfx)$(..)rellns-sh $< $@T; \ + mv -f $@T $@; \ + fi endif ifdef posixrules $(installed-posixrules-file): $(zonedir)/$(posixrules) $(objpfx)zic diff --git a/time/sys/time.h b/time/sys/time.h index f7553dd3a1..3646f9f060 100644 --- a/time/sys/time.h +++ b/time/sys/time.h @@ -23,15 +23,11 @@ Cambridge, MA 02139, USA. */ #include <time.h> -__BEGIN_DECLS +#define __need_timeval +#include <timebits.h> -/* A time value that is accurate to the nearest - microsecond but also has a range of years. */ -struct timeval - { - int tv_sec; /* Seconds. */ - int tv_usec; /* Microseconds. */ - }; + +__BEGIN_DECLS /* Macros for converting between `struct timeval' and `struct timespec'. */ #define TIMEVAL_TO_TIMESPEC(tv, ts) { \ |