From 525deef5275a3400a950702e3a4789df9f600580 Mon Sep 17 00:00:00 2001 From: David Cermak Date: Mon, 16 Dec 2024 18:19:05 +0100 Subject: [PATCH] fix(plctag): Direct declarations of sockutils functions --- plctag/simple/components/libplctag/CMakeLists.txt | 1 + plctag/simple/components/libplctag/include/platform.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/plctag/simple/components/libplctag/CMakeLists.txt b/plctag/simple/components/libplctag/CMakeLists.txt index 3b45358..aa12dae 100644 --- a/plctag/simple/components/libplctag/CMakeLists.txt +++ b/plctag/simple/components/libplctag/CMakeLists.txt @@ -101,3 +101,4 @@ idf_component_register(SRCS ${libplctag_SRCS} target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-format") target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-char-subscripts") +target_compile_options(${COMPONENT_LIB} PRIVATE "-Wno-incompatible-pointer-types") diff --git a/plctag/simple/components/libplctag/include/platform.h b/plctag/simple/components/libplctag/include/platform.h index acaf2d3..363df9b 100644 --- a/plctag/simple/components/libplctag/include/platform.h +++ b/plctag/simple/components/libplctag/include/platform.h @@ -1,8 +1,6 @@ #pragma once #include "sys/socket.h" -#include "socketpair.h" -#define PF_LOCAL AF_UNIX // this ice: using lwip's alloc/free hooks #define mem_free plctag_mem_free