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
This commit is contained in:
Hans-Christoph Steiner 2006-07-31 03:12:37 +00:00
parent b528364600
commit 69ceaa6384

View file

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