summaryrefslogtreecommitdiff
path: root/lib/rpmatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rpmatch.c')
-rw-r--r--lib/rpmatch.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/rpmatch.c b/lib/rpmatch.c
index 65674b6ab..868f714a1 100644
--- a/lib/rpmatch.c
+++ b/lib/rpmatch.c
@@ -30,7 +30,11 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#endif
#include <sys/types.h>
-#include <regex.h>
+#ifdef WITH_REGEX
+# include <regex.h>
+#else
+# include <rx.h>
+#endif
#if ENABLE_NLS
# include <libintl.h>