summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rpmatch.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rpmatch.c b/lib/rpmatch.c
index 55d3bba13..65674b6ab 100644
--- a/lib/rpmatch.c
+++ b/lib/rpmatch.c
@@ -21,9 +21,15 @@ Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#endif
#if STDC_HEADERS || _LIBC
+# include <stddef.h>
# include <stdlib.h>
+#else
+# ifndef NULL
+# define NULL 0
+# endif
#endif
+#include <sys/types.h>
#include <regex.h>
#if ENABLE_NLS