r3510: fix build on SuSE 9.1
authorStefan Metzmacher <metze@samba.org>
Wed, 3 Nov 2004 14:51:49 +0000 (14:51 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:23 +0000 (13:05 -0500)
metze
(This used to be commit 9cc1ab4eb2d5dd42ca8261c4781dd0168954c069)

source4/lib/getsmbpass.c

index b6ae09b3181fd0ecc38076d0f1ec818d754b2390..0d8f4a4b7ea169239b647949617efa5c0ef92ffc 100644 (file)
@@ -19,6 +19,8 @@ Cambridge, MA 02139, USA.  */
 /* Modified to use with samba by Jeremy Allison, 8th July 1995. */
 
 #include "includes.h"
+#include "include/system/terminal.h"
+#include "include/system/wait.h"
 
 #ifdef REPLACE_GETPASS
 
@@ -40,16 +42,16 @@ static struct termio t;
 #define TCSANOW 0
 #endif
 
-static int tcgetattr(int fd, struct termio *t)
+static int tcgetattr(int fd, struct termio *_t)
 {
-       return ioctl(fd, TCGETA, t);
+       return ioctl(fd, TCGETA, _t);
 }
 
-static int tcsetattr(int fd, int flags, struct termio *t)
+static int tcsetattr(int fd, int flags, struct termio *_t)
 {
        if(flags & TCSAFLUSH)
                ioctl(fd, TCFLSH, TCIOFLUSH);
-       return ioctl(fd, TCSETS, t);
+       return ioctl(fd, TCSETS, _t);
 }
 
 #elif !defined(TCSAFLUSH)
@@ -65,14 +67,14 @@ static struct sgttyb t;
 #define TCSAFLUSH 1
 #define TCSANOW 0
 
-static int tcgetattr(int fd, struct sgttyb *t)
+static int tcgetattr(int fd, struct sgttyb *_t)
 {
-       return ioctl(fd, TIOCGETP, (char *)t);
+       return ioctl(fd, TIOCGETP, (char *)_t);
 }
 
-static int tcsetattr(int fd, int flags, struct sgttyb *t)
+static int tcsetattr(int fd, int flags, struct sgttyb *_t)
 {
-       return ioctl(fd, TIOCSETP, (char *)t);
+       return ioctl(fd, TIOCSETP, (char *)_t);
 }
 
 #else /* POSIX TERMIO HANDLING */