From 69ceaa63847fbf3a9706533faad32c0de73f4a2a Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 31 Jul 2006 03:12:37 +0000 Subject: Mac OS X less than 10.4 doesn't have some of these macros, so test for them before using them svn path=/trunk/externals/iem/comport/; revision=5438 --- comport/comport.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/comport/comport.c b/comport/comport.c index 73f699d..dd31015 100644 --- a/comport/comport.c +++ b/comport/comport.c @@ -721,12 +721,16 @@ static int open_serial(unsigned int com_num, t_comport *x) case GLOB_NOSPACE: error("[comport] out of memory for \"%s\"",x->serial_device_name); break; +#ifdef GLOB_ABORTED case GLOB_ABORTED: error("[comport] aborted \"%s\"",x->serial_device_name); break; +#endif +#ifdef GLOB_NOMATCH case GLOB_NOMATCH: error("[comport] no serial devices found for \"%s\"",x->serial_device_name); break; +#endif } if(com_num < glob_buffer.gl_pathc) { -- cgit v1.2.1