pkgsrc/textproc/bsdgrep-devel/patches/patch-grep.c
jperkin 4c1edc2a24 Various fixes:
- Use nbcompat correctly.
  - Support newer zlib API.
  - Handle catpages correctly.

Fixes build on SunOS at least.
2015-07-09 10:56:53 +00:00

15 lines
304 B
C

$NetBSD: patch-grep.c,v 1.1 2015/07/09 10:56:54 jperkin Exp $
Use nbcompat headers.
--- grep.c.orig 2006-05-15 21:12:21.000000000 +0000
+++ grep.c
@@ -31,3 +31,8 @@
+#if defined(HAVE_NBCOMPAT_H)
+#include <nbcompat.h>
+#include <nbcompat/cdefs.h>
+#else
#include <sys/cdefs.h>
+#endif
#ifndef lint