File: use-std-c-ffi.patch

package info (click to toggle)
rust-zstd-sys 2.0.13-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 240 kB
  • sloc: ansic: 57; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
Description: Do not use libc for C types, core::ffi is enough
Last-Update: 2023-11-26
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/build.rs
+++ b/build.rs
@@ -27,2 +27,4 @@
-    #[cfg(not(feature = "std"))]
-    let bindings = bindings.ctypes_prefix("libc");
+    // Debian: core::ffi provides the same c_* types. This also practically
+    // make the std feature a no-op.
+    //#[cfg(not(feature = "std"))]
+    let bindings = bindings.use_core();