aboutsummaryrefslogtreecommitdiff
path: root/databases/libiodbc
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-04-10 14:02:52 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-04-10 14:02:52 +0000
commit9877989572ba8ebb9965633ab93064b1771d827e (patch)
tree7b2d2a7a287b8d71292a2b03a5aff2df2e8f46d2 /databases/libiodbc
parent2a6db0286fcec4cb1e5fc2a19e4457b537633c41 (diff)
downloadports-9877989572ba8ebb9965633ab93064b1771d827e.tar.gz
ports-9877989572ba8ebb9965633ab93064b1771d827e.zip
- Fix detect of wchar_t on FreeBSD. Using _BSD_CT_RUNE_T_ is not sufficient
for some version of FreeBSD, rather test on __FreeBSD__. This problem prevent other programs to include iodbc's header files on -STABLE systems. PR: ports/64743 Submitted by: eik Approved by: maintainer timeout (2 weeks)
Notes
Notes: svn path=/head/; revision=106656
Diffstat (limited to 'databases/libiodbc')
-rw-r--r--databases/libiodbc/Makefile2
-rw-r--r--databases/libiodbc/files/patch-include::sqltypes.h10
2 files changed, 11 insertions, 1 deletions
diff --git a/databases/libiodbc/Makefile b/databases/libiodbc/Makefile
index c75ab3ab4bea..f52c1f610870 100644
--- a/databases/libiodbc/Makefile
+++ b/databases/libiodbc/Makefile
@@ -10,7 +10,7 @@
PORTNAME= libiodbc
PORTVERSION= 3.51.1
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= databases
MASTER_SITES= http://www.iodbc.org/downloads/iODBC/
diff --git a/databases/libiodbc/files/patch-include::sqltypes.h b/databases/libiodbc/files/patch-include::sqltypes.h
new file mode 100644
index 000000000000..b1f5ecbd2350
--- /dev/null
+++ b/databases/libiodbc/files/patch-include::sqltypes.h
@@ -0,0 +1,10 @@
+--- include/sqltypes.h.orig Fri Mar 26 08:33:24 2004
++++ include/sqltypes.h Fri Mar 26 08:33:37 2004
+@@ -409,6 +409,7 @@
+ # if defined(_WCHAR_T) || \
+ defined(_WCHAR_T_DEFINED) || \
+ defined(_WCHAR_T_DECLARED) || \
++ defined(__FreeBSD__) || \
+ defined(_BSD_WCHAR_T_DEFINED_)
+ typedef wchar_t SQLWCHAR;
+ # else