#include <folly/FileUtil.h>
#include <cerrno>
-#ifdef __APPLE__
-#include <fcntl.h>
-#endif
-#include <sys/file.h>
-#include <sys/socket.h>
#include <folly/detail/FileUtilDetail.h>
+#include <folly/portability/Fcntl.h>
+#include <folly/portability/Sockets.h>
+#include <folly/portability/SysFile.h>
namespace folly {
}
int shutdownNoInt(int fd, int how) {
- return wrapNoInt(shutdown, fd, how);
+ return wrapNoInt(portability::sockets::shutdown, fd, how);
}
ssize_t readNoInt(int fd, void* buf, size_t count) {