]> granicus.if.org Git - sudo/commitdiff
Minor fixes for Minix-3
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 24 May 2009 12:33:00 +0000 (12:33 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 24 May 2009 12:33:00 +0000 (12:33 +0000)
interfaces.c
lbuf.c

index f12f5bd4abc4efb06e3048e55eb9be1456f526b7..56011127690c7cd17190cec9b5ebb64846a60d89 100644 (file)
@@ -88,6 +88,10 @@ struct rtentry;
 __unused static const char rcsid[] = "$Sudo$";
 #endif /* lint */
 
+/* Minix apparently lacks IFF_LOOPBACK */
+#ifndef IFF_LOOPBACK
+# define IFF_LOOPBACK  0
+#endif
 
 #ifdef HAVE_GETIFADDRS
 
diff --git a/lbuf.c b/lbuf.c
index 2580e1730be4441754185fb94ba1e842e749dd67..7bbbd535c4f387c316a8001cd03d831fa1769d5b 100644 (file)
--- a/lbuf.c
+++ b/lbuf.c
 # include <unistd.h>
 #endif /* HAVE_UNISTD_H */
 #include <ctype.h>
+#ifdef HAVE_TERMIOS_H
+# include <termios.h>
+#else
+# ifdef HAVE_TERMIO_H
+#  include <termio.h>
+# endif
+#endif
 
 #include "sudo.h"
 #include "lbuf.h"