summaryrefslogtreecommitdiff
path: root/databases/myodbc/patches/patch-ab
blob: d1bd4fac672b55246b09f129c67a0f50b8ba2a05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$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;