summaryrefslogtreecommitdiff
path: root/databases/myodbc/patches/patch-aa
blob: c17a071cbcb6d5fbd619821790f6b3c02b91bee0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-aa,v 1.1 2006/01/23 18:53:45 xtraeme Exp $

--- driver/results.c.orig	2006-01-23 19:13:42.000000000 +0100
+++ driver/results.c	2006-01-23 19:14:15.000000000 +0100
@@ -49,6 +49,7 @@
 #include "myodbc3.h"
 #include <m_ctype.h>
 #include <locale.h>
+#include <sys/param.h>
 
 #define SQL_MY_PRIMARY_KEY 1212
 
@@ -543,7 +544,7 @@
   @purpose : rerunrs column atribute values
 */
 
-#if defined(__APPLE__)
+#if defined(__APPLE__) || defined(BSD)
 SQLRETURN SQL_API SQLColAttribute( SQLHSTMT  StatementHandle,
                                    SQLUSMALLINT ColumnNumber,
                                    SQLUSMALLINT FieldIdentifier,