Skip to content

Conversation

@bastien-curutchet
Copy link
Contributor

Build without SQLite enabled through --enable-sqlite3 still fails if sqlite isn't available:

CC rasdaemon-rasdaemon.o
In file included from rasdaemon.c:17:
ras-record.h:11:10: fatal error: sqlite3.h: No such file or directory
11 | #include <sqlite3.h>
| ^~~~~~~~~~~
compilation terminated.

Include the sqlite header only if the SQLite feature is enabled.

Build without SQLite enabled through --enable-sqlite3 still fails if
sqlite isn't available:
>   CC       rasdaemon-rasdaemon.o
> In file included from rasdaemon.c:17:
> ras-record.h:11:10: fatal error: sqlite3.h: No such file or directory
>    11 | #include <sqlite3.h>
>       |          ^~~~~~~~~~~
> compilation terminated.

Include the sqlite header only if the SQLite feature is enabled.

Signed-off-by: Bastien Curutchet <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant