From 63dbbad5978e5f5b0e7d42614999cb6b4ebcce10 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 10 Aug 2022 01:27:16 -0700
Subject: [PATCH 2/2] chunkio: Link with fts library with musl

Fixes
cio_utils.c:(.text+0x64): undefined reference to `fts_read'

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending

 lib/chunkio/src/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/chunkio/src/CMakeLists.txt b/lib/chunkio/src/CMakeLists.txt
index a4fc2d3..4244eb8 100644
--- a/lib/chunkio/src/CMakeLists.txt
+++ b/lib/chunkio/src/CMakeLists.txt
@@ -13,6 +13,7 @@ set(src
   )
 
 set(libs cio-crc32)
+set(libs ${libs} fts)
 
 if(${CMAKE_SYSTEM_NAME} MATCHES "Windows")
   set(src
-- 
2.37.1

