diff options
author | Michael Johnson <youngmug@animeneko.net> | 2013-04-13 22:25:29 -0300 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-04-15 17:21:03 -0500 |
commit | 0c8689bc04b11e787370fb59ad318c20740d4f80 (patch) | |
tree | d8a8b7dd73f45c1fd0d49303bb7e545b57f7d112 /network/sphinx | |
parent | 12d66761691394485a5fe5729a40cea9c05ab23b (diff) |
network/sphinx: Fix build error on 32-bits.
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'network/sphinx')
-rw-r--r-- | network/sphinx/sphinx.SlackBuild | 3 | ||||
-rw-r--r-- | network/sphinx/sphinx_odbcunix.patch | 18 |
2 files changed, 21 insertions, 0 deletions
diff --git a/network/sphinx/sphinx.SlackBuild b/network/sphinx/sphinx.SlackBuild index a34c8cf87b64..6624faadd1c5 100644 --- a/network/sphinx/sphinx.SlackBuild +++ b/network/sphinx/sphinx.SlackBuild @@ -46,6 +46,9 @@ cd $TMP/$PRGNAM-$VERSION-release chown -R root:root . chmod -R a-s,u+w,go+r-w . +#patch to build on i486 +patch -p1 < $CWD/sphinx_odbcunix.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/network/sphinx/sphinx_odbcunix.patch b/network/sphinx/sphinx_odbcunix.patch new file mode 100644 index 000000000000..780bd153604b --- /dev/null +++ b/network/sphinx/sphinx_odbcunix.patch @@ -0,0 +1,18 @@ +--- sphinx-2.0.5-release/src/sphinxstd.h 2012-06-19 10:53:02.000000000 -0300 ++++ sphinx-2.0.5-release_patched/src/sphinxstd.h 2013-04-13 22:10:17.828838165 -0300 +@@ -95,11 +95,11 @@ + + #if USE_ODBC + // UnixODBC compatible DWORD +-#if defined(__alpha) || defined(__sparcv9) || defined(__LP64__) || (defined(__HOS_AIX__) && defined(_LP64)) || defined(__APPLE__) ++//#if defined(__alpha) || defined(__sparcv9) || defined(__LP64__) || (defined(__HOS_AIX__) && defined(_LP64)) || defined(__APPLE__) + typedef unsigned int DWORD; +-#else +-typedef unsigned long DWORD; +-#endif ++//#else ++//typedef unsigned long DWORD; ++//#endif + #else + // default DWORD + typedef unsigned int DWORD; |