$NetBSD$

--- src/sed/lib/getline.c.orig	2006-11-25 23:34:04.000000000 +0000
+++ src/sed/lib/getline.c
@@ -24,6 +24,11 @@
 #include <limits.h>
 #include <errno.h>
 
+#include <sys/param.h>
+#if defined(__NetBSD__) && __NetBSD_Version__ >= 599001600
+/* nada */
+#else
+
 /* Read up to (and including) a '\n' from STREAM into *LINEPTR
    (and null-terminate it). *LINEPTR is a pointer returned from malloc (or
    NULL), pointing to *N characters of space.  It is realloc'd as
@@ -108,3 +113,5 @@ getline (lineptr, n, stream)
   *p = '\0';
   return p - *lineptr;
 }
+
+#endif /* NetBSD */
