diff options
author | Darren Tucker <dtucker@dtucker.net> | 2018-02-22 20:45:09 +1100 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2018-02-22 21:00:06 +1100 |
commit | ce066f688dc166506c082dac41ca686066e3de5f (patch) | |
tree | 97ef804885643a41dd0eb13c990eee63569b9db7 | |
parent | 3fd2d2291a695c96a54269deae079bacce6e3fb9 (diff) |
Add headers for sys/audit.h.
On some older platforms (at least sunos4, probably others) sys/audit.h
requires some other headers. Patch from klausz at haus-gisela.de.
-rw-r--r-- | configure.ac | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 810f96caa..cbcf9d077 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -388,12 +388,12 @@ AC_CHECK_HEADERS([ \ | |||
388 | stdint.h \ | 388 | stdint.h \ |
389 | string.h \ | 389 | string.h \ |
390 | strings.h \ | 390 | strings.h \ |
391 | sys/audit.h \ | ||
392 | sys/bitypes.h \ | 391 | sys/bitypes.h \ |
393 | sys/bsdtty.h \ | 392 | sys/bsdtty.h \ |
394 | sys/cdefs.h \ | 393 | sys/cdefs.h \ |
395 | sys/dir.h \ | 394 | sys/dir.h \ |
396 | sys/mman.h \ | 395 | sys/mman.h \ |
396 | sys/label.h \ | ||
397 | sys/ndir.h \ | 397 | sys/ndir.h \ |
398 | sys/poll.h \ | 398 | sys/poll.h \ |
399 | sys/prctl.h \ | 399 | sys/prctl.h \ |
@@ -422,6 +422,20 @@ AC_CHECK_HEADERS([ \ | |||
422 | wchar.h \ | 422 | wchar.h \ |
423 | ]) | 423 | ]) |
424 | 424 | ||
425 | # On some platforms (eg SunOS4) sys/audit.h requires sys/[time|types|label.h] | ||
426 | # to be included first. | ||
427 | AC_CHECK_HEADERS([sys/audit.h], [], [], [ | ||
428 | #ifdef HAVE_SYS_TIME_H | ||
429 | # include <sys/time.h> | ||
430 | #endif | ||
431 | #ifdef HAVE_SYS_TYPES_H | ||
432 | # include <sys/types.h> | ||
433 | #endif | ||
434 | #ifdef HAVE_SYS_LABEL_H | ||
435 | # include <sys/label.h> | ||
436 | #endif | ||
437 | ]) | ||
438 | |||
425 | # sys/capsicum.h requires sys/types.h | 439 | # sys/capsicum.h requires sys/types.h |
426 | AC_CHECK_HEADERS([sys/capsicum.h], [], [], [ | 440 | AC_CHECK_HEADERS([sys/capsicum.h], [], [], [ |
427 | #ifdef HAVE_SYS_TYPES_H | 441 | #ifdef HAVE_SYS_TYPES_H |