diff options
Diffstat (limited to 'debian/patches/fix-types-include.diff')
-rw-r--r-- | debian/patches/fix-types-include.diff | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/debian/patches/fix-types-include.diff b/debian/patches/fix-types-include.diff new file mode 100644 index 0000000..8643c44 --- /dev/null +++ b/debian/patches/fix-types-include.diff @@ -0,0 +1,30 @@ +Author: Pino Toscano <pino@debian.org> +Description: Fix xbtypes.h usage + a) do not redefine xbOffT everytime xbtypes.h is included + b) do not include xbtypes.h in xbcdx.cpp, since it will be indirectly pulled + by xbase64.h +Forwarded: no +Last-Update: 2014-09-13 + +--- a/xbase64/xbcdx.cpp ++++ b/xbase64/xbcdx.cpp +@@ -1,4 +1,3 @@ +-#include "xbtypes.h"
+ #include "xbcdx.h"
+
+ xbShort xbCdx::CreateIndex(const char* filename, const char *expr,
+--- a/xbase64/xbtypes.h ++++ b/xbase64/xbtypes.h +@@ -85,7 +85,6 @@ typedef short int xbBool; + #else + #endif + #endif // XB_LOCKING_ON +-#endif // __XB_XTYPES_H__ + + // 64 bit file processing + #if defined(HAVE_FSEEKO) && defined(HAVE_FTELLO) && defined(XB_LARGEFILE_SUPPORT) +@@ -97,3 +96,4 @@ typedef short int xbBool; + #define _fseek fseek + typedef long xbOffT; + #endif ++#endif // __XB_XTYPES_H__ |