mirror of
https://github.com/UzixLS/picocom.git
synced 2025-07-19 07:21:18 +03:00
Small makefile simplification reg. custom baud rate support
This commit is contained in:
11
termios2.c
11
termios2.c
@ -23,9 +23,12 @@
|
||||
* USA
|
||||
*/
|
||||
|
||||
#ifndef __linux__
|
||||
#error "Linux specific code!"
|
||||
#endif /* of __linux__ */
|
||||
#if defined(__linux__) && defined(USE_CUSTOM_BAUD)
|
||||
|
||||
#include <linux/version.h>
|
||||
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,0)
|
||||
#error "This code requires Linux kernel > 2.6!"
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
@ -180,6 +183,8 @@ cf2setispeed_custom(struct termios *tios, int speed)
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
#endif /* __linux__ && USE_CUSTOM_BAUD */
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
* mode:c
|
||||
|
Reference in New Issue
Block a user