Changeset 4814
- Timestamp:
- 10/02/08 10:08:40
(2 months ago)
- Author:
- jmowery
- Message:
apparently sepol/errcodes.h does not always exist depending on version of libsepol
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r4806 |
r4814 |
|
| 550 | 550 | dnl check for new error code format, added in libsepol 2.0.0 |
|---|
| 551 | 551 | AC_CHECK_HEADER([sepol/errcodes.h], |
|---|
| 552 | | sepol_new_defines="yes", |
|---|
| 553 | | sepol_new_defines="no") |
|---|
| | 552 | sepol_new_errcodes="yes", |
|---|
| | 553 | sepol_new_errcodes="no") |
|---|
| 554 | 554 | |
|---|
| 555 | 555 | AC_RUN_IFELSE( |
|---|
| … | … | |
| 782 | 782 | AC_DEFINE_UNQUOTED(TEST_POLICIES, "${test_policies}", [location of testing policies]) |
|---|
| 783 | 783 | |
|---|
| 784 | | if test ${sepol_new_defines} != "yes" ; then |
|---|
| | 784 | if test ${sepol_new_errcodes} != "yes" ; then |
|---|
| 785 | 785 | AC_DEFINE(SEPOL_ENOMEM, HASHTAB_OVERFLOW, [remap of libsepol 1.x.x define to 2.x.x]) |
|---|
| 786 | 786 | AC_DEFINE(SEPOL_EEXIST, HASHTAB_PRESENT, [remap of libsepol 1.x.x define to 2.x.x]) |
|---|
| | 787 | else |
|---|
| | 788 | AC_DEFINE(HAVE_SEPOL_ERRCODES, 1, [if libsepol has errcodes.h]) |
|---|
| 787 | 789 | fi |
|---|
| 788 | 790 | if test ${sepol_new_expand_boolmap} == "yes" ; then |
|---|
| r4813 |
r4814 |
|
| 58 | 58 | #include <sepol/policydb/polcaps.h> |
|---|
| 59 | 59 | #endif |
|---|
| | 60 | #ifdef HAVE_SEPOL_ERRCODES |
|---|
| 60 | 61 | #include <sepol/errcodes.h> |
|---|
| | 62 | #endif |
|---|
| 61 | 63 | |
|---|
| 62 | 64 | #include "queue.h" |
|---|
| r4813 |
r4814 |
|
| 33 | 33 | #include <sepol/policydb/ebitmap.h> |
|---|
| 34 | 34 | #include <sepol/policydb/expand.h> |
|---|
| | 35 | #ifdef HAVE_SEPOL_ERRCODES |
|---|
| 35 | 36 | #include <sepol/errcodes.h> |
|---|
| | 37 | #endif |
|---|
| 36 | 38 | #include <qpol/policy.h> |
|---|
| 37 | 39 | #include <qpol/policy_extend.h> |
|---|
Download in other formats:
* Generating other formats may take time.