Commit: 6f26f2f8de7f57fc8e885328e6b73d95bf227b97
Parent: d26a7f96cdd4250f4de3792fd647c3b92581712e
Author: Christian Eggers <ceggers@arri.de>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2025-03-19 20:57:44
Tree: a023365324a4c0ecbf3482f1c0872e00c51dc7f3

mesh: include <time.h> before <ell/ell.h> I get many of such warnings: In file included from ../bluez-5.79/ell/ell.h:8, from ../bluez-5.79/mesh/prov-initiator.c:15: ../bluez-5.79/ell/time-private.h:15:43: warning: 'struct timespec' declared inside parameter list will not be visible outside of this definition or declaration 15 | uint64_t _time_from_timespec(const struct timespec *ts); | ^~~~~~~~ It seems that there's no guarantee that 'struct timespec' will be available via <sys/time.h>, so include <time.h> directly [1] [1] https://libc-alpha.sourceware.narkive.com/yb0aXzSp/defining-timespec-in-time-h-or-sys-time-h#post3

Diffstat

M mesh/agent.c | 2 ++
M mesh/appkey.c | 2 ++
M mesh/cfgmod-server.c | 1 +
M mesh/crypto.c | 1 +
M mesh/dbus.c | 2 ++
M mesh/friend.c | 2 ++
M mesh/keyring.c | 1 +
M mesh/main.c | 1 +
M mesh/manager.c | 2 ++
M mesh/mesh-config-json.c | 1 +
M mesh/mesh-io-generic.c | 1 +
M mesh/mesh-io-mgmt.c | 1 +
M mesh/mesh-io-unit.c | 1 +
M mesh/mesh-io.c | 2 ++
M mesh/mesh-mgmt.c | 2 ++
M mesh/mesh.c | 2 ++
M mesh/model.c | 1 +
M mesh/net-keys.c | 2 ++
M mesh/net.c | 1 +
M mesh/node.c | 1 +
M mesh/pb-adv.c | 2 ++
M mesh/prov-acceptor.c | 2 ++
M mesh/prov-initiator.c | 2 ++
M mesh/prvbeac-server.c | 1 +
M mesh/remprv-server.c | 1 +
M mesh/rpl.c | 1 +
M src/shared/btp.c | 1 +
M src/shared/io-ell.c | 1 +
M src/shared/mainloop-ell.c | 1 +
M src/shared/timeout-ell.c | 2 ++
M tools/mesh/cfgcli.c | 1 +
M tools/mesh/keys.c | 2 ++
M tools/mesh/remote.c | 2 ++
M tools/mesh/util.c | 1 +

34 files changed, 49 insertions(+), 0 deletions(-)

View Full Diff | Patch