diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-07-31 03:12:37 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-07-31 03:12:37 +0000 |
commit | 69ceaa63847fbf3a9706533faad32c0de73f4a2a (patch) | |
tree | 8a65891825c52f29d558991204f1a05c7c8f89e5 /comport | |
parent | b52836460085119f4d130b198f3f29c55ba10fcb (diff) |
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
Diffstat (limited to 'comport')
-rw-r--r-- | comport/comport.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |