From 656b3be02d22a52957903e3c89660ffb0247307b Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Thu, 9 Feb 2017 19:58:26 +0100 Subject: [PATCH] Added fallback for CMSPAR. (See debian #854689) --- winpr/libwinpr/comm/comm_serial_sys.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/winpr/libwinpr/comm/comm_serial_sys.c b/winpr/libwinpr/comm/comm_serial_sys.c index 975c514a4..950f36f6b 100644 --- a/winpr/libwinpr/comm/comm_serial_sys.c +++ b/winpr/libwinpr/comm/comm_serial_sys.c @@ -37,6 +37,12 @@ #include #include +/* Undocumented flag, not supported everywhere. + * Provide a sensible fallback to avoid compilation problems. */ +#ifndef CMSPAR +#define CMSPAR 010000000000 +#endif + /* hard-coded in N_TTY */ #define TTY_THRESHOLD_THROTTLE 128 /* now based on remaining room */ #define TTY_THRESHOLD_UNTHROTTLE 128