mirror of
https://github.com/kanjitalk755/macemu.git
synced 2025-02-09 16:31:08 +00:00
- fixed compilation problem
This commit is contained in:
parent
9e903d1686
commit
4fe6328e43
@ -177,7 +177,7 @@ int16 XSERDPort::open(uint16 config)
|
|||||||
quitting = false;
|
quitting = false;
|
||||||
|
|
||||||
// Open port
|
// Open port
|
||||||
fd = open(device_name, O_RDWR);
|
fd = ::open(device_name, O_RDWR);
|
||||||
if (fd < 0)
|
if (fd < 0)
|
||||||
goto open_error;
|
goto open_error;
|
||||||
|
|
||||||
@ -238,7 +238,7 @@ open_error:
|
|||||||
output_thread_active = false;
|
output_thread_active = false;
|
||||||
}
|
}
|
||||||
if (fd > 0) {
|
if (fd > 0) {
|
||||||
close(fd);
|
::close(fd);
|
||||||
fd = -1;
|
fd = -1;
|
||||||
}
|
}
|
||||||
return openErr;
|
return openErr;
|
||||||
@ -513,7 +513,7 @@ int16 XSERDPort::close()
|
|||||||
|
|
||||||
// Close port
|
// Close port
|
||||||
if (fd > 0)
|
if (fd > 0)
|
||||||
close(fd);
|
::close(fd);
|
||||||
fd = -1;
|
fd = -1;
|
||||||
return noErr;
|
return noErr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user