mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
ntp-for-solaris-58-20010305
Let ntp build on Solaris 8
This commit is contained in:
parent
bc5204d4e7
commit
4470f1d03f
@ -184,7 +184,10 @@ extern struct servent *servp;
|
||||
extern char *malloc(), *ntoa();
|
||||
extern double drift_comp, compliance; /* logical clock variables */
|
||||
extern double s_fixed_to_double(), ul_fixed_to_double();
|
||||
extern void make_new_peer(), double_to_s_fixed(), tstamp(), demobilize();
|
||||
extern void make_new_peer(), double_to_s_fixed(), demobilize();
|
||||
#ifndef AFS_SUN58_ENV
|
||||
extern void tstamp();
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef REFCLOCK
|
||||
|
@ -233,7 +233,8 @@ double_to_s_fixed(t, value)
|
||||
results in the value 2^31. Neither 4.2bsd nor VMS have this
|
||||
problem. Reported it to Bob O'Brien of SMI
|
||||
*/
|
||||
#ifdef SUN_FLT_BUG
|
||||
#ifndef AFS_SUN58_ENV
|
||||
#ifdef SUN_FLT_BUG
|
||||
tstamp(stampp, tvp)
|
||||
struct l_fixedpt *stampp;
|
||||
struct timeval *tvp;
|
||||
@ -255,6 +256,7 @@ tstamp(stampp, tvp)
|
||||
stampp->fraction = ntohl((afs_uint32) ((float) tvp->tv_usec * 4294.967295));
|
||||
}
|
||||
#endif
|
||||
#endif /* AFS_SUN58_ENV */
|
||||
|
||||
/*
|
||||
* ntoa is similar to inet_ntoa, but cycles through a set of 8 buffers
|
||||
|
Loading…
Reference in New Issue
Block a user