--- libfreshclam/CMakeLists.txt.orig	2022-03-09 03:12:27 +0000
+++ libfreshclam/CMakeLists.txt	2022-03-09 03:53:53 +0000
@@ -49,10 +49,12 @@
                 ${APPLE_CORE_FOUNDATION}
                 ${APPLE_SECURITY} )
     elseif(UNIX)
-        if(HAVE_RESOLV_H AND NOT C_BSD) # BSD appears to have libresolv inside libc
-            target_link_libraries( freshclam
-                PUBLIC
-                    resolv )
+        if(HAVE_RESOLV_H AND NOT C_BSD) # AIX and BSD appears to have libresolv inside libc
+            if(AIX)
+                target_link_libraries( freshclam
+                    PUBLIC
+                        resolv )
+            endif() 
         endif()
     endif()
 
