summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-04-06 17:42:24 +0000
committerstefanf <stefanf@FreeBSD.org>2005-04-06 17:42:24 +0000
commite45b89dcfdd1eb10ed256a1c94e1b4c336ed2517 (patch)
tree6917509076662e949056f693acf45f823b27cccb /libexec
parentaa9bf872c4504b84b35eb3aa05e438afe02d8b81 (diff)
downloadFreeBSD-src-e45b89dcfdd1eb10ed256a1c94e1b4c336ed2517.zip
FreeBSD-src-e45b89dcfdd1eb10ed256a1c94e1b4c336ed2517.tar.gz
Include gettytab.h before extern.h so that the declarations of struct
gettyflags, gettynums and gettystrs are available.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/getty/chat.c1
-rw-r--r--libexec/getty/extern.h3
-rw-r--r--libexec/getty/init.c2
-rw-r--r--libexec/getty/main.c2
4 files changed, 3 insertions, 5 deletions
diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c
index 8256bb1..bc5a963 100644
--- a/libexec/getty/chat.c
+++ b/libexec/getty/chat.c
@@ -39,6 +39,7 @@ static const char rcsid[] =
#include <syslog.h>
#include <unistd.h>
+#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 f8e8bda..04f3287 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 c83a83e..b832bb2 100644
--- a/libexec/getty/init.c
+++ b/libexec/getty/init.c
@@ -45,8 +45,8 @@ static const char rcsid[] =
* Melbourne getty.
*/
#include <termios.h>
-#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 ceea009..ad53411 100644
--- a/libexec/getty/main.c
+++ b/libexec/getty/main.c
@@ -67,8 +67,8 @@ static const char rcsid[] =
#include <time.h>
#include <unistd.h>
-#include "extern.h"
#include "gettytab.h"
+#include "extern.h"
#include "pathnames.h"
/*
OpenPOWER on IntegriCloud