summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/dso.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/dso.c b/src/dso.c
index 4138d0e..5dc4823 100644
--- a/src/dso.c
+++ b/src/dso.c
@@ -68,9 +68,12 @@ static int ca_error_from_lt_error(int code) {
[LT_ERROR_CLOSE_RESIDENT_MODULE] = CA_ERROR_INTERNAL,
[LT_ERROR_INVALID_MUTEX_ARGS] = CA_ERROR_INTERNAL,
[LT_ERROR_INVALID_POSITION] = CA_ERROR_INTERNAL
- };
+#ifdef LT_ERROR_CONFLICTING_FLAGS
+ , [LT_ERROR_CONFLICTING_FLAGS] = CA_ERROR_INTERNAL
+#endif
+};
- if (code < 0 || code >= LT_ERROR_MAX)
+ if (code < 0 || code >= CA_ELEMENTSOF(table))
return CA_ERROR_INTERNAL;
return table[code];