-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add substitue functions for strndupa & rawmemchr
- Loading branch information
1 parent
25e26f4
commit d579a08
Showing
5 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
dnl | ||
define([AC_INIT_NOTICE], | ||
[### Generated automatically using autoconf version] AC_ACVERSION [ | ||
### Copyright 2005-18 Steve Grubb <[email protected]> | ||
### Copyright 2005-19 Steve Grubb <[email protected]> | ||
### | ||
### Permission is hereby granted, free of charge, to any person obtaining a | ||
### copy of this software and associated documentation files (the "Software"), | ||
|
@@ -72,6 +72,18 @@ dnl; posix_fallocate is used in audisp-remote | |
AC_CHECK_FUNCS([posix_fallocate]) | ||
dnl; signalfd is needed for libev | ||
AC_CHECK_FUNC([signalfd], [], [ AC_MSG_ERROR([The signalfd system call is necessary for auditd]) ]) | ||
dnl; check if rawmemchr is available | ||
AC_CHECK_FUNCS([rawmemchr]) | ||
dnl; check if strndupa is available | ||
AC_LINK_IFELSE( | ||
[AC_LANG_SOURCE( | ||
[[ | ||
#define _GNU_SOURCE | ||
#include <string.h> | ||
int main() { (void) strndupa("test", 10); return 0; }]])], | ||
[AC_DEFINE(HAVE_STRNDUPA, 1, [Let us know if we have it or not])], | ||
[] | ||
) | ||
|
||
ALLWARNS="" | ||
ALLDEBUG="-g" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters