Implement UniqueFDTraits::Free on non-win system (flutter/engine#5705)

This commit is contained in:
李少杰
2018-07-11 08:12:57 +08:00
committed by Chinmay Garde
parent 3752afc3bc
commit e4a03611ff
2 changed files with 5 additions and 1 deletions

View File

@@ -24,7 +24,7 @@ void UniqueFDTraits::Free(HANDLE fd) {
namespace unix {
void UniqueFDTraits::Free(int fd) {
FML_IGNORE_EINTR(fd);
close(fd);
}
} // namespace unix

View File

@@ -12,6 +12,10 @@
#include <windows.h>
#else // OS_WIN
#include <unistd.h>
#endif // OS_WIN
namespace fml {