mirror of
https://git.freebsd.org/ports.git
synced 2025-07-12 06:49:18 -04:00
fix the build on FreeBSD 12.0 - delete the 'register' keyword everywhere - Add whitespace between adjacent quoted strings - Update the offsetof() macro to cast the result to int Reported by: pkg-fallout
11 lines
412 B
C++
11 lines
412 B
C++
--- src/sphinxplugin.cpp.orig 2016-07-19 10:42:18 UTC
|
|
+++ src/sphinxplugin.cpp
|
|
@@ -219,7 +219,7 @@ static bool PluginLoadSymbols ( void * pDesc, const Sy
|
|
|
|
#if !USE_WINDOWS
|
|
#define offsetof(T, M) \
|
|
- (reinterpret_cast<char*>(&(((T*)1000)->M)) - reinterpret_cast<char*>(1000))
|
|
+ ((int)(reinterpret_cast<char*>(&(((T*)1000)->M)) - reinterpret_cast<char*>(1000)))
|
|
#endif
|
|
|
|
static SymbolDesc_t g_dSymbolsUDF[] =
|