diff options
author | miwi <miwi@FreeBSD.org> | 2008-02-04 04:34:51 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2008-02-04 04:34:51 +0800 |
commit | 24f13b43bb1aba968f56bc0670ae175ed1b2755f (patch) | |
tree | a93d9528035f540a7110d28b49c6c713b1c23a36 /cad/brlcad | |
parent | 9197a66f1f82b3b32c8b8cd2e5e076fba25226a6 (diff) | |
download | freebsd-ports-gnome-24f13b43bb1aba968f56bc0670ae175ed1b2755f.tar.gz freebsd-ports-gnome-24f13b43bb1aba968f56bc0670ae175ed1b2755f.tar.zst freebsd-ports-gnome-24f13b43bb1aba968f56bc0670ae175ed1b2755f.zip |
- Fix build
Submitted by: pointyhat via erwin/pav
Diffstat (limited to 'cad/brlcad')
-rw-r--r-- | cad/brlcad/files/patch-src-vas4_vas_io.c | 31 |
1 files changed, 28 insertions, 3 deletions
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 <termios.h> -@@ -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 */ + } + + /* |