From 14767221d6cb860e8c1ce4259c01ace598c97d27 Mon Sep 17 00:00:00 2001 From: Martin Wilke Date: Sun, 3 Feb 2008 20:34:51 +0000 Subject: - Fix build Submitted by: pointyhat via erwin/pav --- cad/brlcad/files/patch-src-vas4_vas_io.c | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to 'cad/brlcad') diff --git a/cad/brlcad/files/patch-src-vas4_vas_io.c b/cad/brlcad/files/patch-src-vas4_vas_io.c index 7e2b2a81a4de..b4471b7740c5 100644 --- a/cad/brlcad/files/patch-src-vas4_vas_io.c +++ b/cad/brlcad/files/patch-src-vas4_vas_io.c @@ -1,5 +1,3 @@ -Add the following patch to the files/ directory: - --- src/vas4/vas_io.c 2007-07-26 03:14:00.000000000 +0200 +++ src/vas4/vas_io.c 2007-12-28 11:30:45.000000000 +0100 @@ -41,6 +41,8 @@ @@ -11,7 +9,25 @@ Add the following patch to the files/ directory: #if defined(HAVE_XOPEN) # include -@@ -149,7 +151,7 @@ +@@ -93,6 +95,8 @@ + + /* Setup VAS line */ + ++#ifndef HAVE_XOPEN ++ + #ifdef HAVE_TERMIO_H + + vtty.c_cflag = BAUD | CS8; /* Character size = 8 bits */ +@@ -137,7 +141,7 @@ + # endif /* HAVE_SGTTY_H */ + #endif /* HAVE_TERMIO_H */ + +-#ifdef HAVE_XOPEN ++#else /* HAVE_XOPEN */ + vtty.c_cflag = BAUD | CS8; /* Character size = 8 bits */ + vtty.c_cflag &= ~CSTOPB; /* One stop bit */ + vtty.c_cflag |= CREAD; /* Enable the reader */ +@@ -149,7 +153,7 @@ vtty.c_iflag |= IGNBRK|IGNPAR; vtty.c_oflag &= ~(OPOST|ONLCR|OCRNL); /* Turn off all post-processing */ @@ -20,3 +36,12 @@ Add the following patch to the files/ directory: vtty.c_cc[VMIN] = 1; vtty.c_cc[VTIME] = 0; +@@ -167,7 +171,7 @@ + perror(VAS_PORT); + exit(2); + } +-#endif ++#endif /* !HAVE_XOPEN */ + } + + /* -- cgit v1.2.3