1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-02 14:07:46 +00:00

Fix build on non-windows

Signed-off-by: Peter Atashian <retep998@gmail.com>
This commit is contained in:
Peter Atashian 2015-07-20 16:40:29 -04:00
parent 47f82f0de2
commit 010bda9df2

View file

@ -15,6 +15,7 @@ extern crate getopts;
extern crate libc;
#[path = "../common/util.rs"] #[macro_use] mod util;
#[cfg(windows)] #[path = "../common/wide.rs"] mod wide;
static NAME: &'static str = "sync";
static VERSION: &'static str = "1.0.0";
@ -37,12 +38,11 @@ mod platform {
mod platform {
extern crate winapi;
extern crate kernel32;
#[path = "../../common/wide.rs"] mod wide;
use std::{mem};
use std::fs::OpenOptions;
use std::io::{Write};
use std::os::windows::prelude::*;
use self::wide::{FromWide, ToWide};
use wide::{FromWide, ToWide};
unsafe fn flush_volume(name: &str) {
let name_wide = name.to_wide_null();