On Sunday 18 December 2005 11:27 am, Ross Cathriner wrote: > In the interest of higher bus speed, lets recap the events leading to > the patch. > > I originally got an "ow_ds9097.c:312: error: 'B115200' undeclared" > during the make process. > > The man-page for "cfsetispeed" says the highest supported baudrate in > termios.h is 38400. > > The file at /usr/include/termios.h does not define the variable, > instead points to #include <sys/termios.h> > > The file at /usr/include/sys/termios.h defines the variables as > follows: > /* > * Standard speeds > */ ... > #define B38400 38400 > #ifndef _POSIX_C_SOURCE > #define B7200 7200 > #define B14400 14400 > #define B28800 28800 > #define B57600 57600 > #define B76800 76800 > #define B115200 115200 > #define B230400 230400 > #define EXTA 19200 > #define EXTB 38400 > #endif /* !_POSIX_C_SOURCE */
Thanks Ross, So if we #undef "_POSIX_C_Source" can we use B115200? I understand why the patch was made -- to let the code actually compile. I was just pointing out that in this case, the 115200 is a magic number, not just an optimistic communication setting. Paul Alfille ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ Owfs-developers mailing list Owfs-developers@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/owfs-developers