Make getty compile with gcc40: reorder/include headers to resolve
authorSimon Schubert <corecode@dragonflybsd.org>
Sat, 7 May 2005 20:00:20 +0000 (20:00 +0000)
committerSimon Schubert <corecode@dragonflybsd.org>
Sat, 7 May 2005 20:00:20 +0000 (20:00 +0000)
incomplete type.

libexec/getty/chat.c
libexec/getty/init.c

index 5d2dcc9..658e5eb 100644 (file)
@@ -23,7 +23,7 @@
  * For semi-intelligent modem handling.
  *
  * $FreeBSD: src/libexec/getty/chat.c,v 1.6 1999/08/28 00:09:34 peter Exp $
- * $DragonFly: src/libexec/getty/chat.c,v 1.4 2004/03/26 00:30:12 cpressey Exp $
+ * $DragonFly: src/libexec/getty/chat.c,v 1.5 2005/05/07 20:00:20 corecode Exp $
  */
 
 #include <sys/param.h>
@@ -47,6 +47,7 @@
 #include <unistd.h>
 #include <sys/socket.h>
 
+#include "gettytab.h"
 #include "extern.h"
 
 #define        PAUSE_CH                (unsigned char)'\xff'   /* pause kludge */
index 20cc754..aa4ee1f 100644 (file)
@@ -32,7 +32,7 @@
  *
  * @(#)from: init.c    8.1 (Berkeley) 6/4/93
  * $FreeBSD: src/libexec/getty/init.c,v 1.11.2.3 2003/02/06 11:45:31 sobomax Exp $
- * $DragonFly: src/libexec/getty/init.c,v 1.2 2003/06/17 04:27:07 dillon Exp $
+ * $DragonFly: src/libexec/getty/init.c,v 1.3 2005/05/07 20:00:20 corecode Exp $
  */
 
 /*
@@ -41,8 +41,8 @@
  * Melbourne getty.
  */
 #include <termios.h>
-#include "extern.h"
 #include "gettytab.h"
+#include "extern.h"
 #include "pathnames.h"
 
 static char loginmsg[] = "login: ";