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:
parent
b528364600
commit
69ceaa6384
1 changed files with 4 additions and 0 deletions
|
|
@ -721,12 +721,16 @@ static int open_serial(unsigned int com_num, t_comport *x)
|
||||||
case GLOB_NOSPACE:
|
case GLOB_NOSPACE:
|
||||||
error("[comport] out of memory for \"%s\"",x->serial_device_name);
|
error("[comport] out of memory for \"%s\"",x->serial_device_name);
|
||||||
break;
|
break;
|
||||||
|
#ifdef GLOB_ABORTED
|
||||||
case GLOB_ABORTED:
|
case GLOB_ABORTED:
|
||||||
error("[comport] aborted \"%s\"",x->serial_device_name);
|
error("[comport] aborted \"%s\"",x->serial_device_name);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
|
#ifdef GLOB_NOMATCH
|
||||||
case GLOB_NOMATCH:
|
case GLOB_NOMATCH:
|
||||||
error("[comport] no serial devices found for \"%s\"",x->serial_device_name);
|
error("[comport] no serial devices found for \"%s\"",x->serial_device_name);
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
if(com_num < glob_buffer.gl_pathc)
|
if(com_num < glob_buffer.gl_pathc)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue