From 8e212c0858b1345584e056a0eacecbd67785b64c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 3 Dec 2023 13:59:21 -0800 Subject: [PATCH] Fedora Rawhide builds fail without stdlib include Implicit declarations of malloc, free, atoi, and others are considered an error now. Signed-off-by: Dirk Hohndel --- core/deco.c | 1 + core/dive.h | 1 + core/import-cobalt.c | 1 + core/import-seac.c | 1 + core/libdivecomputer.c | 1 + core/liquivision.c | 1 + core/planner.c | 1 + core/plannernotes.c | 1 + core/profile.c | 1 + core/subsurfacestartup.c | 1 + core/uemis-downloader.c | 1 + core/uemis.c | 1 + 12 files changed, 12 insertions(+) diff --git a/core/deco.c b/core/deco.c index f662a9d5a..f422afa3d 100644 --- a/core/deco.c +++ b/core/deco.c @@ -17,6 +17,7 @@ * restore_deco_state() * dump_tissues() */ +#include #include #include #include diff --git a/core/dive.h b/core/dive.h index c5f97a868..eb35a08b3 100644 --- a/core/dive.h +++ b/core/dive.h @@ -10,6 +10,7 @@ #include "picture.h" #include +#include #ifdef __cplusplus extern "C" { diff --git a/core/import-cobalt.c b/core/import-cobalt.c index 5fd1ace09..93ebae3d4 100644 --- a/core/import-cobalt.c +++ b/core/import-cobalt.c @@ -4,6 +4,7 @@ #pragma clang diagnostic ignored "-Wmissing-field-initializers" #endif +#include #include "ssrf.h" #include "dive.h" #include "divesite.h" diff --git a/core/import-seac.c b/core/import-seac.c index 3a921d849..789215c63 100644 --- a/core/import-seac.c +++ b/core/import-seac.c @@ -4,6 +4,7 @@ #pragma clang diagnostic ignored "-Wmissing-field-initializers" #endif +#include #include "qthelper.h" #include "ssrf.h" #include "dive.h" diff --git a/core/libdivecomputer.c b/core/libdivecomputer.c index 501d9709f..3012638c3 100644 --- a/core/libdivecomputer.c +++ b/core/libdivecomputer.c @@ -6,6 +6,7 @@ #include "ssrf.h" #include +#include #include #include #include diff --git a/core/liquivision.c b/core/liquivision.c index b4faf4f1d..f998d4fd0 100644 --- a/core/liquivision.c +++ b/core/liquivision.c @@ -1,5 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 #include +#include #include "ssrf.h" #include "divesite.h" diff --git a/core/planner.c b/core/planner.c index 73d4cf62f..66547c82e 100644 --- a/core/planner.c +++ b/core/planner.c @@ -5,6 +5,7 @@ * * (c) Dirk Hohndel 2013 */ +#include #include #include #include diff --git a/core/plannernotes.c b/core/plannernotes.c index bcedaf661..e2f84284c 100644 --- a/core/plannernotes.c +++ b/core/plannernotes.c @@ -9,6 +9,7 @@ #include #include #include +#include #include "dive.h" #include "deco.h" #include "units.h" diff --git a/core/profile.c b/core/profile.c index 62f65e6e5..f6bf70f46 100644 --- a/core/profile.c +++ b/core/profile.c @@ -7,6 +7,7 @@ #include #include #include +#include #include "dive.h" #include "divelist.h" diff --git a/core/subsurfacestartup.c b/core/subsurfacestartup.c index 9e66ce625..099ad7942 100644 --- a/core/subsurfacestartup.c +++ b/core/subsurfacestartup.c @@ -11,6 +11,7 @@ #include #include +#include extern void show_computer_list(); diff --git a/core/uemis-downloader.c b/core/uemis-downloader.c index 95c635e80..58eeea4ca 100644 --- a/core/uemis-downloader.c +++ b/core/uemis-downloader.c @@ -20,6 +20,7 @@ #include #include #include +#include #include "gettext.h" #include "libdivecomputer.h" diff --git a/core/uemis.c b/core/uemis.c index 0eebff6ad..c4950a890 100644 --- a/core/uemis.c +++ b/core/uemis.c @@ -9,6 +9,7 @@ */ #include #include +#include #include "gettext.h"