ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/serial_unix.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/serial_unix.cpp (file contents):
Revision 1.1 by cebix, 1999-10-03T14:16:25Z vs.
Revision 1.2 by cebix, 1999-10-14T11:37:46Z

# Line 181 | Line 181 | int16 XSERDPort::Open(uint16 config)
181          if (fd < 0)
182                  goto open_error;
183  
184 < #ifdef __linux__
184 > #if defined(__linux__)
185          // Parallel port?
186          struct stat st;
187          if (fstat(fd, &st) == 0)
188                  if (S_ISCHR(st.st_mode))
189                          is_parallel = (MAJOR(st.st_rdev) == LP_MAJOR);
190 < #elif defined(__FreeBSD__)
190 > #elif defined(__FreeBSD__) || defined(__NetBSD__)
191          // Parallel port?
192          struct stat st;
193          if (fstat(fd, &st) == 0)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines