1
0
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:
Joe Merten
2016-12-15 15:47:08 +01:00
parent 52ab89f616
commit 67eaf5400d
2 changed files with 11 additions and 10 deletions

View File

@ -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