[rdkb][common][app][Fix 2024q1 version build fail issue]

[Description]
Fix 2024q1 version build fail issue

[Release-log]

Change-Id: I934525cf7932df7d5e7eb78b170cdbaf7450196d
diff --git a/recipes-ccsp/ccsp/ccsp-eth-agent.bbappend b/recipes-ccsp/ccsp/ccsp-eth-agent.bbappend
index a7ec1c0..3244638 100644
--- a/recipes-ccsp/ccsp/ccsp-eth-agent.bbappend
+++ b/recipes-ccsp/ccsp/ccsp-eth-agent.bbappend
@@ -1,5 +1,21 @@
 require ccsp_common_filogic.inc
 
+FILESEXTRAPATHS_append := "${THISDIR}/files:"
+
+SRC_URI_append += " \
+    file://Fix-ccsp-eth-agent-build-error.patch;apply=no \
+"
+
+do_filogic_patches() {
+    cd ${S}
+
+    if [ ! -e filogic_patch_applied ] && [[ "${PROJECT_BRANCH}" == "rdkb-2024q1-dunfell" || "${PROJECT_BRANCH}" == "rdkb-2024q1-kirkstone" ]]; then
+        patch -p1 < ${WORKDIR}/Fix-ccsp-eth-agent-build-error.patch
+        touch filogic_patch_applied
+    fi
+}
+addtask filogic_patches after do_unpack before do_configure
+
 CFLAGS_aarch64_append = " -Werror=format-truncation=1 "
 
 EXTRA_OECONF_append_dunfell  = " --with-ccsp-arch=arm"
@@ -8,4 +24,4 @@
     -lsyscfg \
     -lbreakpadwrapper \
 "
-LDFLAGS_append_dunfell = " -lpthread -lsafec-3.5.1"
+LDFLAGS_append_dunfell = " -lpthread -lsafec-3.5.1"
\ No newline at end of file