freebsd-ports/databases/soci/files/patch-backends_postgresql_statement.cpp
Baptiste Daroussin f4f46a920e Fix unixODBC vs libiodbc conflicts
Always rely on unixODBC each time a port is looking for libodbc.so
Remove odbc compat from libiodbc
This allows to install both kde and gnome at the same time

While here:
- Convert libiodbc to USES=libtool
- Convert a bunch of libiodbc dependencies to USES=libtool
- Chase libiodbc.so shlib change
- Stagify some ports
- Convert some ports to USES=pgsql

Discussed with:	rakuco (kde)
With hat:	portmgr
2014-05-05 16:24:00 +00:00

11 lines
502 B
C++

--- ./backends/postgresql/statement.cpp.orig 2014-05-05 16:49:26.985995826 +0200
+++ ./backends/postgresql/statement.cpp 2014-05-05 16:46:18.049008548 +0200
@@ -453,7 +453,7 @@
// pointer to it, so we can't rely on implicit conversion here.
const char * const resultStr = PQcmdTuples(result_.get_result());
char * end;
- long long result = std::strtoll(resultStr, &end, 0);
+ long long result = strtoq(resultStr, &end, 0);
if (end != resultStr)
{
return result;