From 4e34d5f58955ddfc174b20ae0e5081bb1db983be Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 5 May 2011 07:36:40 -0400 Subject: [PATCH] Don't use removed rpc headers --- ChangeLog | 8 ++++++++ inet/protocols/timed.h | 4 +++- nis/Makefile | 4 ++-- resolv/netdb.h | 5 ----- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index e90eaa9541..7f2e75c4f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-05 Andreas Schwab + + * resolv/netdb.h: Don't include . + * nis/Makefile: Don't install rpcsvc/*. + * inet/protocols/timed.h: Include and + instead of . + (MAXHOSTNAMELEN): Define. + 2011-05-03 Andreas Schwab * elf/ldconfig.c (add_dir): Don't crash on empty path. diff --git a/inet/protocols/timed.h b/inet/protocols/timed.h index 4345bed476..b5d4702ff3 100644 --- a/inet/protocols/timed.h +++ b/inet/protocols/timed.h @@ -32,7 +32,8 @@ #ifndef _PROTOCOLS_TIMED_H #define _PROTOCOLS_TIMED_H 1 -#include +#include +#include /* * Time Synchronization Protocol @@ -40,6 +41,7 @@ #define TSPVERSION 1 #define ANYADDR NULL +#define MAXHOSTNAMELEN 64 struct tsp { u_char tsp_type; diff --git a/nis/Makefile b/nis/Makefile index f63ada62db..e7e5f0c78a 100644 --- a/nis/Makefile +++ b/nis/Makefile @@ -23,9 +23,9 @@ subdir := nis aux := nis_hash -headers := $(wildcard rpcsvc/*.[hx]) distribute := nss-nis.h nss-nisplus.h nis_intern.h Banner \ - nisplus-parser.h nis_xdr.h nss + nisplus-parser.h nis_xdr.h nss \ + $(wildcard rpcsvc/*.[hx]) # These are the databases available for the nis (and perhaps later nisplus) # service. This must be a superset of the services in nss. diff --git a/resolv/netdb.h b/resolv/netdb.h index 6b76a25d3f..b70639b930 100644 --- a/resolv/netdb.h +++ b/resolv/netdb.h @@ -27,11 +27,6 @@ #include #include -#ifdef __USE_MISC -/* This is necessary to make this include file properly replace the - Sun version. */ -# include -#endif #ifdef __USE_GNU # define __need_sigevent_t