diff --git a/auparse/auparse.h b/auparse/auparse.h index 48375e2c7..ba5139625 100644 --- a/auparse/auparse.h +++ b/auparse/auparse.h @@ -31,6 +31,8 @@ #endif #ifndef __attr_dealloc # define __attr_dealloc(dealloc, argno) +#endif +#ifndef __attr_dealloc_free # define __attr_dealloc_free #endif #ifndef __attribute_malloc__ diff --git a/lib/audit_logging.h b/lib/audit_logging.h index 9082a2720..fab7e75d1 100644 --- a/lib/audit_logging.h +++ b/lib/audit_logging.h @@ -25,6 +25,7 @@ // Next include is to pick up the function attribute macros #include +#include #include #ifdef __cplusplus @@ -39,6 +40,8 @@ extern "C" { #endif #ifndef __attr_dealloc # define __attr_dealloc(dealloc, argno) +#endif +#ifndef __attr_dealloc_free # define __attr_dealloc_free #endif // Warn unused result diff --git a/lib/libaudit.h b/lib/libaudit.h index 2c51853b7..cce5dc493 100644 --- a/lib/libaudit.h +++ b/lib/libaudit.h @@ -43,6 +43,8 @@ // malloc and free assignments #ifndef __attr_dealloc # define __attr_dealloc(dealloc, argno) +#endif +#ifndef __attr_dealloc_free # define __attr_dealloc_free #endif #ifndef __attribute_malloc__