mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-22 13: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;
|
||||
|
||||
// Open port
|
||||
fd = open(device_name, O_RDWR);
|
||||
fd = ::open(device_name, O_RDWR);
|
||||
if (fd < 0)
|
||||
goto open_error;
|
||||
|
||||
@ -238,7 +238,7 @@ open_error:
|
||||
output_thread_active = false;
|
||||
}
|
||||
if (fd > 0) {
|
||||
close(fd);
|
||||
::close(fd);
|
||||
fd = -1;
|
||||
}
|
||||
return openErr;
|
||||
@ -513,7 +513,7 @@ int16 XSERDPort::close()
|
||||
|
||||
// Close port
|
||||
if (fd > 0)
|
||||
close(fd);
|
||||
::close(fd);
|
||||
fd = -1;
|
||||
return noErr;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user