Remove support for legacy SGI IRIX
This commit is contained in:
@@ -198,9 +198,7 @@ isc_file_settime(const char *file, isc_time_t *when) {
|
||||
|
||||
/*
|
||||
* isc_time_nanoseconds guarantees a value that divided by 1000 will
|
||||
* fit into the minimum possible size tv_usec field. Unfortunately,
|
||||
* we don't know what that type is so can't cast directly ... but
|
||||
* we can at least cast to signed so the IRIX compiler shuts up.
|
||||
* fit into the minimum possible size tv_usec field.
|
||||
*/
|
||||
times[0].tv_usec = times[1].tv_usec =
|
||||
(int32_t)(isc_time_nanoseconds(when) / 1000);
|
||||
|
||||
@@ -29,14 +29,8 @@
|
||||
#include <isc/print.h>
|
||||
|
||||
/* XXX what about Alpha? */
|
||||
#ifdef sgi
|
||||
#define ROUNDUP(a) ((a) > 0 ? \
|
||||
(1 + (((a) - 1) | (sizeof(__uint64_t) - 1))) : \
|
||||
sizeof(__uint64_t))
|
||||
#else
|
||||
#define ROUNDUP(a) ((a) > 0 ? (1 + (((a) - 1) | (sizeof(long) - 1))) \
|
||||
: sizeof(long))
|
||||
#endif
|
||||
|
||||
#define IFITER_MAGIC ISC_MAGIC('I', 'F', 'I', 'S')
|
||||
#define VALID_IFITER(t) ISC_MAGIC_VALID(t, IFITER_MAGIC)
|
||||
@@ -218,18 +212,10 @@ internal_current(isc_interfaceiter_t *iter) {
|
||||
#ifdef ISC_PLATFORM_HAVESALEN
|
||||
sa = (struct sockaddr *)((char*)(sa)
|
||||
+ ROUNDUP(sa->sa_len));
|
||||
#else
|
||||
#ifdef sgi
|
||||
/*
|
||||
* Do as the contributed SGI code does.
|
||||
*/
|
||||
sa = (struct sockaddr *)((char*)(sa)
|
||||
+ ROUNDUP(_FAKE_SA_LEN_DST(sa)));
|
||||
#else
|
||||
/* XXX untested. */
|
||||
sa = (struct sockaddr *)((char*)(sa)
|
||||
+ ROUNDUP(sizeof(struct sockaddr)));
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user