- 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)
This commit is contained in:
Pav Lucistnik 2004-04-10 14:02:52 +00:00
parent 2a6db0286f
commit 9877989572
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=106656
2 changed files with 11 additions and 1 deletions

View File

@ -10,7 +10,7 @@
PORTNAME= libiodbc
PORTVERSION= 3.51.1
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= databases
MASTER_SITES= http://www.iodbc.org/downloads/iODBC/

View File

@ -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