/*
- * Copyright 2014 Facebook, Inc.
+ * Copyright 2015 Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* limitations under the License.
*/
-#include "folly/FileUtil.h"
+#include <folly/FileUtil.h>
#include <cerrno>
#ifdef __APPLE__
#include <sys/file.h>
#include <sys/socket.h>
-#include "folly/detail/FileUtilDetail.h"
+#include <folly/detail/FileUtilDetail.h>
namespace folly {
int fdatasyncNoInt(int fd) {
#if defined(__APPLE__)
return wrapNoInt(fcntl, fd, F_FULLFSYNC);
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(_MSC_VER)
return wrapNoInt(fsync, fd);
#else
return wrapNoInt(fdatasync, fd);
#endif
} // namespaces
-