Implement UniqueFDTraits::Free on non-win system (flutter/engine#5705)
This commit is contained in:
@@ -24,7 +24,7 @@ void UniqueFDTraits::Free(HANDLE fd) {
|
||||
namespace unix {
|
||||
|
||||
void UniqueFDTraits::Free(int fd) {
|
||||
FML_IGNORE_EINTR(fd);
|
||||
close(fd);
|
||||
}
|
||||
|
||||
} // namespace unix
|
||||
|
||||
@@ -12,6 +12,10 @@
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
#else // OS_WIN
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#endif // OS_WIN
|
||||
|
||||
namespace fml {
|
||||
|
||||
Reference in New Issue
Block a user