ports/textproc/sphinxsearch/files/patch-src_sphinxutils.cpp
Matthew Seaman f074c54f02 Patches to make the code compatible with clang-6.0 / C++17 -- this will
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
2018-02-04 09:16:23 +00:00

17 lines
457 B
C++

--- src/sphinxutils.cpp.orig 2018-02-03 10:25:41 UTC
+++ src/sphinxutils.cpp
@@ -2103,11 +2103,11 @@ void sphBacktrace ( int iFD, bool bSafe )
#endif
#ifdef CONFIGURE_FLAGS
- sphSafeInfo ( iFD, "Configured with flags: "CONFIGURE_FLAGS );
+ sphSafeInfo ( iFD, "Configured with flags: " CONFIGURE_FLAGS );
#endif
#ifdef OS_UNAME
- sphSafeInfo ( iFD, "Host OS is "OS_UNAME );
+ sphSafeInfo ( iFD, "Host OS is " OS_UNAME );
#endif
bool bOk = true;