File sslh-nopcreposix.patch of Package sslh
--- a/Makefile
+++ b/Makefile
@@ -5,11 +5,11 @@
# change any of these
ENABLE_REGEX=1 # Enable regex probes
USELIBCONFIG=1 # Use libconfig? (necessary to use configuration files)
-USELIBPCRE=1 # Use libpcre? (needed for regex on musl)
-USELIBWRAP?= # Use libwrap?
-USELIBCAP= # Use libcap?
-USESYSTEMD= # Make use of systemd socket activation
-USELIBBSD?= # Use libbsd (needed to update process name in `ps`)
+USELIBPCRE= # Use libpcre? (needed for regex on musl)
+USELIBWRAP= # Use libwrap?
+USELIBCAP=1 # Use libcap?
+USESYSTEMD=1 # Make use of systemd socket activation
+USELIBBSD= # Use libbsd (needed to update process name in `ps`)
COV_TEST= # Perform test coverage?
PREFIX?=/usr
BINDIR?=$(PREFIX)/sbin
--- a/sslh-conf.c
+++ b/sslh-conf.c
@@ -38,7 +38,7 @@
#include <stdio.h>
#include "sslh-conf.h"
#include "argtable3.h"
-#ifdef LIBPCRE
+#if defined(LIBPCRE) && !defined(__GLIBC__)
#include <pcreposix.h>
#else
#include <regex.h>