nixpkgs/pkgs/os-specific/linux/audit/000-fix-static-attribute-malloc.diff
2023-05-22 18:54:00 -03:00

12 lines
No EOL
278 B
Diff

--- a/auparse/auparse.h
+++ b/auparse/auparse.h
@@ -32,6 +32,9 @@
# define __attr_dealloc(dealloc, argno)
# define __attr_dealloc_free
#endif
+#ifndef __attribute_malloc__
+# define __attribute_malloc__ __attribute__ ((__malloc__))
+#endif
#ifdef __cplusplus
extern "C" {