diff options
author | jperkin <jperkin> | 2013-09-11 16:11:44 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2013-09-11 16:11:44 +0000 |
commit | ca17044f240e4ada4a7a6d9dacc5fa8a461a8b22 (patch) | |
tree | 33e40251f7ef249a984fd6deb6ad789b4d88361b /databases/freetds/patches | |
parent | 2ec13fc5f15f34f0215d57928523bd031ec2f4b7 (diff) | |
download | pkgsrc-ca17044f240e4ada4a7a6d9dacc5fa8a461a8b22.tar.gz |
Disable hidden symbols on SunOS, for some reason this part of the code
hides strlen(), causing linker failure later.
Diffstat (limited to 'databases/freetds/patches')
-rw-r--r-- | databases/freetds/patches/patch-include_ctlib.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/databases/freetds/patches/patch-include_ctlib.h b/databases/freetds/patches/patch-include_ctlib.h new file mode 100644 index 00000000000..41a55bc70d5 --- /dev/null +++ b/databases/freetds/patches/patch-include_ctlib.h @@ -0,0 +1,24 @@ +$NetBSD: patch-include_ctlib.h,v 1.1 2013/09/11 16:11:44 jperkin Exp $ + +Disable symbol visibility on SunOS, causes strlen() issues. + +--- include/ctlib.h.orig 2010-10-05 08:36:36.000000000 +0000 ++++ include/ctlib.h +@@ -24,7 +24,7 @@ + * Internal (not part of the exposed API) prototypes and such. + */ + +-#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__) ++#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__) && !defined(__sun) + #pragma GCC visibility push(hidden) + #endif + +@@ -286,7 +286,7 @@ int _cs_locale_copy_inplace(CS_LOCALE *n + } + #endif + +-#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__) ++#if defined(__GNUC__) && __GNUC__ >= 4 && !defined(__MINGW32__) && !defined(__sun) + #pragma GCC visibility pop + #endif + |