From 410f13a58d44e0f19306df28a99227015a2a688a Mon Sep 17 00:00:00 2001 From: Stefan Farfeleder Date: Wed, 6 Apr 2005 17:42:24 +0000 Subject: [PATCH] Include gettytab.h before extern.h so that the declarations of struct gettyflags, gettynums and gettystrs are available. --- libexec/getty/chat.c | 1 + libexec/getty/extern.h | 3 --- libexec/getty/init.c | 2 +- libexec/getty/main.c | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c index 8256bb13fb6c..bc5a963c8a35 100644 --- a/libexec/getty/chat.c +++ b/libexec/getty/chat.c @@ -39,6 +39,7 @@ static const char rcsid[] = #include #include +#include "gettytab.h" #include "extern.h" #define PAUSE_CH (unsigned char)'\xff' /* pause kludge */ diff --git a/libexec/getty/extern.h b/libexec/getty/extern.h index f8e8bda12a09..04f3287c9bb9 100644 --- a/libexec/getty/extern.h +++ b/libexec/getty/extern.h @@ -36,9 +36,6 @@ struct delayval; struct termios; -struct gettyflags; -struct gettynums; -struct gettystrs; extern char hostname[]; extern int hopcount; diff --git a/libexec/getty/init.c b/libexec/getty/init.c index c83a83e487c0..b832bb29fa8b 100644 --- a/libexec/getty/init.c +++ b/libexec/getty/init.c @@ -45,8 +45,8 @@ static const char rcsid[] = * Melbourne getty. */ #include -#include "extern.h" #include "gettytab.h" +#include "extern.h" #include "pathnames.h" static char loginmsg[] = "login: "; diff --git a/libexec/getty/main.c b/libexec/getty/main.c index ceea00966564..ad53411b57fb 100644 --- a/libexec/getty/main.c +++ b/libexec/getty/main.c @@ -67,8 +67,8 @@ static const char rcsid[] = #include #include -#include "extern.h" #include "gettytab.h" +#include "extern.h" #include "pathnames.h" /*