From bd8430f3399202bc88cc8abe0285f9517ab2cc28 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Thu, 18 Jul 2024 22:48:41 +0200 Subject: ipcpd: Fix build on OSX Macro was missing for CLOCK_REALTIME_COARSE, which does not exist on OS X, and the preprocessor macro for the ipcpd-eth had an #endif misplaced which was exposing an otherwise unknown label. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/eth/eth.c | 2 +- src/ipcpd/ipcp.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/ipcpd') diff --git a/src/ipcpd/eth/eth.c b/src/ipcpd/eth/eth.c index ea6e0f1c..c0e6d0ce 100644 --- a/src/ipcpd/eth/eth.c +++ b/src/ipcpd/eth/eth.c @@ -1512,8 +1512,8 @@ static int eth_ipcp_bootstrap(const struct ipcp_config * conf) close(eth_data.bpf); #elif defined(HAVE_RAW_SOCKETS) close(eth_data.s_fd); -#endif fail_socket: +#endif return -1; } diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c index 966c4920..c2678fc8 100644 --- a/src/ipcpd/ipcp.c +++ b/src/ipcpd/ipcp.c @@ -64,6 +64,10 @@ #endif #endif +#ifndef CLOCK_REALTIME_COARSE +#define CLOCK_REALTIME_COARSE CLOCK_REALTIME +#endif + char * info[LAYER_NAME_SIZE + 1] = { "_state", "_type", -- cgit v1.2.3