1
0
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:
Nick Patavalis
2015-10-15 23:42:43 +03:00
parent 3842a9aefc
commit 72cab71ebd

8
term.c
View File

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