Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing serial baut/bit rate definition on PostOpen for Linux. By "STA…
…NDARD" POSIX defines that B9600, B38400 defined types should be used. Linux define it on /usr/include/rpcsvc/rex.h and it uses numeric sequence increment to enumeration, Mac OS X define it as the same number for example #define B38400 38400. So If you're trying to connect on Linux using a bautrate 38400 for example, the cfsetispeed was called using the 38400 int value, that works for MAC but not for Linux. Code was changed to met the STANDART Bxxxxxx. Mac OS definition: http://developer.apple.com/library/ios/#documentation/System/Conceptual/ManPages_iPhoneOS/man3/cfsetispeed.3.html Contributed by matheusbrat@gmail.com BUG found by cTn / Shadow6363 @ freenode - Thanks! BUG=176439,176711 TEST=Try to open a connection with different bitrates on Linux and see that is working. More information about how to reproduce it on Bug report. Review URL: https://chromiumcodereview.appspot.com/12294009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@183543 0039d316-1c4b-4281-b951-d872f2087c98
- Loading branch information