Skip to content

Commit 3f1067a

Browse files
committed
Fix bindings.
PR mozilla#74 introduced a manually-generated change to the bindings that I accidentally broke in mozilla#76.
1 parent f0fa429 commit 3f1067a

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lmdb-sys/bindgen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub fn generate() {
5353
.size_t_is_usize(true)
5454
.ctypes_prefix("::libc")
5555
.blacklist_item("mode_t")
56-
.blacklist_item("filehandle_t")
56+
.blacklist_item("mdb_filehandle_t")
5757
.blacklist_item("^__.*")
5858
.parse_callbacks(Box::new(Callbacks {}))
5959
.layout_tests(false)

lmdb-sys/src/bindings.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ pub const MDB_BAD_VALSIZE: ::libc::c_int = -30781;
5353
pub const MDB_BAD_DBI: ::libc::c_int = -30780;
5454
pub const MDB_LAST_ERRCODE: ::libc::c_int = -30780;
5555
pub type mdb_mode_t = mode_t;
56-
pub type mdb_filehandle_t = ::libc::c_int;
5756
#[repr(C)]
5857
#[derive(Debug, Copy, Clone)]
5958
pub struct MDB_env {

lmdb-sys/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ pub type mode_t = ::libc::c_int;
1414

1515
#[cfg(unix)]
1616
#[allow(non_camel_case_types)]
17-
pub type filehandle_t = ::libc::c_int;
17+
pub type mdb_filehandle_t = ::libc::c_int;
1818
#[cfg(windows)]
1919
#[allow(non_camel_case_types)]
20-
pub type filehandle_t = *mut ::libc::c_void;
20+
pub type mdb_filehandle_t = *mut ::libc::c_void;
2121

2222
include!("bindings.rs");

0 commit comments

Comments
 (0)