|
@@ -0,0 +1,16 @@
|
|
|
+// -*- coding: utf-8 -*-
|
|
|
+//
|
|
|
+// Copyright (C) 2024 Michael Büsch <m@bues.ch>
|
|
|
+//
|
|
|
+// Licensed under the Apache License version 2.0
|
|
|
+// or the MIT license, at your option.
|
|
|
+// SPDX-License-Identifier: Apache-2.0 OR MIT
|
|
|
+
|
|
|
+fn main() {
|
|
|
+ let ac = autocfg::new();
|
|
|
+ ac.emit_path_cfg("libc::SYS_mmap", "has_SYS_mmap");
|
|
|
+ ac.emit_path_cfg("libc::SYS_mmap2", "has_SYS_mmap2");
|
|
|
+ autocfg::rerun_path("build.rs");
|
|
|
+}
|
|
|
+
|
|
|
+// vim: ts=4 sw=4 expandtab
|