ntp-for-solaris-58-20010305

Let ntp build on Solaris 8
This commit is contained in:
Hartmut Reuter 2001-03-05 15:34:14 +00:00 committed by Derrick Brashear
parent bc5204d4e7
commit 4470f1d03f
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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