summary refs log tree commit diff
path: root/pkgs/os-specific/linux/audit/000-fix-static-attribute-malloc.diff
blob: ce76fc3b87a55d32a5fb608790aa1b31dac1f1b5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- 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" {