907e9a0
diff -up ./configure.ac.uthash ./configure.ac
43ce258
--- ./configure.ac.uthash	2022-09-27 16:34:59.000000000 +0200
43ce258
+++ ./configure.ac	2022-09-29 11:57:26.297879027 +0200
43ce258
@@ -81,10 +81,6 @@ AC_CHECK_HEADER(sys/fanotify.h, , [AC_MS
907e9a0
 ["Couldn't find sys/fanotify.h...your kernel might not be new enough"] )])
907e9a0
 AC_CHECK_FUNCS(fexecve, [], [])
907e9a0
 
907e9a0
-AC_CHECK_HEADER(uthash.h, , [AC_MSG_ERROR(
907e9a0
-["Couldn't find uthash.h...uthash-devel is missing"] )])
907e9a0
-
907e9a0
-
907e9a0
 echo .
907e9a0
 echo Checking for required libraries
907e9a0
 AC_CHECK_LIB(udev, udev_device_get_devnode, , [AC_MSG_ERROR([libudev not found])], -ludev)
907e9a0
diff -up ./src/library/rpm-backend.c.uthash ./src/library/rpm-backend.c
43ce258
--- ./src/library/rpm-backend.c.uthash	2022-09-29 11:57:26.297879027 +0200
43ce258
+++ ./src/library/rpm-backend.c	2022-09-29 11:58:45.470119807 +0200
907e9a0
@@ -32,7 +32,7 @@
907e9a0
 #include <rpm/rpmdb.h>
907e9a0
 #include <fnmatch.h>
907e9a0
 
907e9a0
-#include <uthash.h>
907e9a0
+#include "uthash.h"
907e9a0
 
907e9a0
 #include "message.h"
43ce258
 #include "gcc-attributes.h"
907e9a0
diff -up ./src/Makefile.am.uthash ./src/Makefile.am
43ce258
--- ./src/Makefile.am.uthash	2022-09-27 16:34:59.000000000 +0200
43ce258
+++ ./src/Makefile.am	2022-09-29 11:57:26.297879027 +0200
907e9a0
@@ -5,6 +5,9 @@ AM_CPPFLAGS = \
907e9a0
 	-I${top_srcdir} \
907e9a0
 	-I${top_srcdir}/src/library
907e9a0
 
907e9a0
+AM_CPPFLAGS += \
907e9a0
+	-I${top_srcdir}/uthash-2.3.0/include
907e9a0
+
907e9a0
 sbin_PROGRAMS = fapolicyd fapolicyd-cli
907e9a0
 lib_LTLIBRARIES= libfapolicyd.la
907e9a0