--- src/libply/ply-command-parser.c	
+++ src/libply/ply-command-parser.c	
@@ -33,6 +33,10 @@
 #include "ply-list.h"
 #include "ply-utils.h"
 
+#if !defined(__GLIBC__)
+#include <rpmatch.h>
+#endif
+
 typedef union
 {
   bool as_boolean;
