mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-14 17:53:37 +00:00
845aae9c10
Fixes the build failure after the upgrade to glibc 2.26 in
9bb67d5c1e
.
From the cfree(3) manpage:
This function should never be used. Use free(3) instead. Starting with
version 2.26, it has been removed from glibc.
From the glibc 2.26 release notes[1]:
* The obsolete function cfree has been removed. Applications should use
free instead.
[1]: https://sourceware.org/ml/libc-alpha/2017-08/msg00010.html
Signed-off-by: aszlig <aszlig@nix.build>
Cc: @7c6f434c, @tohl
13 lines
576 B
Diff
13 lines
576 B
Diff
diff --git a/modules/bindings/glibc/linux.lisp b/modules/bindings/glibc/linux.lisp
|
|
index c40b4f8..1c8edca 100644
|
|
--- a/modules/bindings/glibc/linux.lisp
|
|
+++ b/modules/bindings/glibc/linux.lisp
|
|
@@ -648,7 +648,6 @@
|
|
(def-call-out calloc (:arguments (nmemb size_t) (size size_t))
|
|
(:return-type c-pointer))
|
|
(def-call-out free (:arguments (ptr c-pointer)) (:return-type nil))
|
|
-(def-call-out cfree (:arguments (ptr c-pointer)) (:return-type nil))
|
|
(def-call-out valloc (:arguments (size size_t)) (:return-type c-pointer))
|
|
|
|
(def-call-out abort (:arguments) (:return-type nil))
|