diff --git a/usr.sbin/ppp/chat.h b/usr.sbin/ppp/chat.h index 54e86834be6..c8fcf9a9c3c 100644 --- a/usr.sbin/ppp/chat.h +++ b/usr.sbin/ppp/chat.h @@ -26,6 +26,8 @@ * SUCH DAMAGE. */ +#include + #define CHAT_EXPECT 0 #define CHAT_SEND 1 #define CHAT_DONE 2 @@ -74,7 +76,7 @@ struct chat { #define descriptor2chat(d) \ ((d)->type == CHAT_DESCRIPTOR ? (struct chat *)(d) : NULL) -#define VECSIZE(v) (sizeof(v) / sizeof(v[0])) +#define VECSIZE(v) nitems(v) extern void chat_Init(struct chat *, struct physical *); extern int chat_Setup(struct chat *, const char *, const char *);