pkgsrc/databases/myodbc/patches/patch-ab
obache c63c842717 *BSD dosen't have strndup.
Pointed out by Yasushi Oshima in PR 33160.

Bump PKGREVISION.
2007-01-14 14:37:44 +00:00

15 lines
534 B
Text

$NetBSD: patch-ab,v 1.1 2007/01/14 14:37:44 obache Exp $
--- util/MYODBCUtilReadDataSourceStr.c.orig 2005-10-09 19:33:40.000000000 +0000
+++ util/MYODBCUtilReadDataSourceStr.c
@@ -19,8 +19,9 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */
#include "MYODBCUtil.h"
+#include <sys/param.h>
-#if defined(__APPLE__) || defined(WIN32) || defined(__sparc)
+#if defined(__APPLE__) || defined(WIN32) || defined(__sparc) || defined(BSD)
char *strndup( const char *s, size_t n )
{
size_t nAvail;