$NetBSD: patch-ab,v 1.2 2011/07/09 07:45:09 adam Exp $

--- str.c.orig	2010-07-24 10:32:07.000000000 +0000
+++ str.c
@@ -18,10 +18,8 @@
 #include "mem.h"
 #include "utils.h"
 
-/*
-Most unixes have this function already.
 
-#ifndef _GNU_SOURCE
+#ifndef HAVE_STRNDUP
 char *strndup(char *in, int size)
 {
 	char *out = mymalloc(size + 1, "strndup");
@@ -32,4 +30,3 @@ char *strndup(char *in, int size)
 	return out;
 }
 #endif
-*/
