mirror of
https://github.com/UzixLS/picocom.git
synced 2025-07-19 07:21:18 +03:00
Define dummy CMSPAR (=0) if undefined
Some BSDs (and possibly other systems too) have no mark / space parity support, and they don't define CMSPAR. Define a dummy (zero) CMSPAR in these cases. If the user tries to set P_MARK or P_SPACE he will get P_EVEN or P_ODD instead.
This commit is contained in:
8
term.c
8
term.c
@ -44,6 +44,14 @@
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Some BSDs (and possibly other systems too) have no mark / space
|
||||
* parity support, and they don't define CMSPAR. Use a zero CMSPAR in
|
||||
* these cases. If the user tries to set P_MARK or P_SPACE he will get
|
||||
* P_EVEN or P_ODD instead. */
|
||||
#ifndef CMSPAR
|
||||
#define CMSPAR 0
|
||||
#endif
|
||||
|
||||
#ifdef __linux__
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user