From: Todd C. Miller Date: Sun, 21 Mar 2010 16:57:00 +0000 (-0400) Subject: term.c does not needto include sudo.h X-Git-Tag: SUDO_1_8_0~779 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74ce00482fd36145fe06699830b0c8c6774ff2a3;p=sudo term.c does not needto include sudo.h --- diff --git a/src/Makefile.in b/src/Makefile.in index a83a7176f..89020dee8 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -145,7 +145,7 @@ sudo_edit.o: $(srcdir)/sudo_edit.c $(SUDODEP) $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/sudo_edit.c sudo_noexec.o: $(srcdir)/sudo_noexec.c $(incdir)/compat.h $(top_builddir)/config.h $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/sudo_noexec.c -term.o: $(srcdir)/term.c $(SUDODEP) +term.o: $(srcdir)/term.c $(incdir)/compat.h $(top_builddir)/config.h $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/term.c tgetpass.o: $(srcdir)/tgetpass.c $(SUDODEP) $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(OPTIONS) $(srcdir)/tgetpass.c diff --git a/src/term.c b/src/term.c index 993f53fd9..6e7f614f7 100644 --- a/src/term.c +++ b/src/term.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009 Todd C. Miller + * Copyright (c) 2010 Todd C. Miller * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -43,7 +43,7 @@ # include #endif /* HAVE_TERMIOS_H */ -#include "sudo.h" +#include "compat.h" #ifndef TCSASOFT # define TCSASOFT 0 @@ -80,9 +80,7 @@ # define TCSADRAIN TCSETAW #endif /* HAVE_TERMIOS_H */ -typedef struct termios sudo_term_t; - -static sudo_term_t term, oterm; +static struct termios term, oterm; static int changed; int term_erase; int term_kill;