Skip to content

Commit f0670d7

Browse files
authored
Merge pull request #476 from LordGrimmauld/musl-compat
fix build with musl
2 parents 1e19b77 + 98adfcc commit f0670d7

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

auparse/auparse.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
#endif
3232
#ifndef __attr_dealloc
3333
# define __attr_dealloc(dealloc, argno)
34+
#endif
35+
#ifndef __attr_dealloc_free
3436
# define __attr_dealloc_free
3537
#endif
3638
#ifndef __attribute_malloc__

lib/audit_logging.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
// Next include is to pick up the function attribute macros
2727
#include <features.h>
28+
#include <sys/types.h>
2829
#include <audit-records.h>
2930

3031
#ifdef __cplusplus
@@ -39,6 +40,8 @@ extern "C" {
3940
#endif
4041
#ifndef __attr_dealloc
4142
# define __attr_dealloc(dealloc, argno)
43+
#endif
44+
#ifndef __attr_dealloc_free
4245
# define __attr_dealloc_free
4346
#endif
4447
// Warn unused result

lib/libaudit.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
// malloc and free assignments
4444
#ifndef __attr_dealloc
4545
# define __attr_dealloc(dealloc, argno)
46+
#endif
47+
#ifndef __attr_dealloc_free
4648
# define __attr_dealloc_free
4749
#endif
4850
#ifndef __attribute_malloc__

0 commit comments

Comments
 (0)