From 8254bad8c7ebf81c4d91fa8504b98c899d882693 Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Thu, 3 Mar 2016 22:51:39 +0700 Subject: network/sphinx: Fix build on x86. Signed-off-by: Willy Sudiarto Raharjo --- network/sphinx/sphinx.SlackBuild | 2 ++ network/sphinx/sphinx.patch | 11 +++++++++++ 2 files changed, 13 insertions(+) create mode 100644 network/sphinx/sphinx.patch (limited to 'network') diff --git a/network/sphinx/sphinx.SlackBuild b/network/sphinx/sphinx.SlackBuild index eb154f1ccdfc6..ce7adb2c760f1 100644 --- a/network/sphinx/sphinx.SlackBuild +++ b/network/sphinx/sphinx.SlackBuild @@ -68,6 +68,8 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; +patch -p1 < $CWD/sphinx.patch + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ diff --git a/network/sphinx/sphinx.patch b/network/sphinx/sphinx.patch new file mode 100644 index 0000000000000..8017805e02010 --- /dev/null +++ b/network/sphinx/sphinx.patch @@ -0,0 +1,11 @@ +--- sphinx-2.2.10-release/src/sphinxstd.h.orig 2016-03-03 22:46:11.233963956 +0700 ++++ sphinx-2.2.10-release/src/sphinxstd.h 2016-03-03 22:46:23.830802814 +0700 +@@ -127,7 +127,7 @@ + #if defined(__alpha) || defined(__sparcv9) || defined(__LP64__) || (defined(__HOS_AIX__) && defined(_LP64)) || defined(__APPLE__) + typedef unsigned int DWORD; + #else +-typedef unsigned long DWORD; ++typedef unsigned int DWORD; + #endif + #else + // default DWORD -- cgit v1.2.3