diff --git a/src/header/fcntl/cbindgen.toml b/src/header/fcntl/cbindgen.toml index 1e54313f42..ae5142ec51 100644 --- a/src/header/fcntl/cbindgen.toml +++ b/src/header/fcntl/cbindgen.toml @@ -7,3 +7,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export] +include = ["flock"] diff --git a/src/header/fcntl/mod.rs b/src/header/fcntl/mod.rs index 2f23451135..a1fd9ef554 100644 --- a/src/header/fcntl/mod.rs +++ b/src/header/fcntl/mod.rs @@ -112,9 +112,6 @@ pub unsafe extern "C" fn openat( Sys::openat(fd, path, oflag, mode).or_minus_one_errno() } -#[unsafe(no_mangle)] -pub unsafe extern "C" fn cbindgen_stupid_struct_user_for_fcntl(_: flock) {} - #[unsafe(no_mangle)] pub unsafe extern "C" fn posix_fallocate(fd: c_int, offset: off_t, length: off_t) -> c_int { // Length can't be zero and offset must be positive.