diff --git a/src/backend/postgres/account.c b/src/backend/postgres/account.c index 8bd9364946..47b0185386 100644 --- a/src/backend/postgres/account.c +++ b/src/backend/postgres/account.c @@ -41,6 +41,7 @@ #include "gnc-commodity.h" #include "gnc-engine-util.h" #include "gnc-event.h" +#include "gnc-pricedb.h" #include "guid.h" #include "account.h" diff --git a/src/backend/postgres/book.c b/src/backend/postgres/book.c index 5b38121042..35f64665f3 100644 --- a/src/backend/postgres/book.c +++ b/src/backend/postgres/book.c @@ -36,6 +36,7 @@ #include "book.h" #include "gnc-book-p.h" #include "gnc-engine-util.h" +#include "gnc-pricedb.h" #include "guid.h" #include "kvp-sql.h" #include "PostgresBackend.h" diff --git a/src/backend/postgres/price.c b/src/backend/postgres/price.c index 4a396936fc..0f1bd94acf 100644 --- a/src/backend/postgres/price.c +++ b/src/backend/postgres/price.c @@ -353,9 +353,10 @@ pgendGetAllPricesInBook (PGBackend *be, GNCBook *book) /* ============================================================= */ void -pgendPriceFind (Backend *bend, GNCPriceLookup *look) +pgendPriceFind (Backend *bend, gpointer olook) { PGBackend *be = (PGBackend *)bend; + GNCPriceLookup *look = (GNCPriceLookup *)olook; const char * commodity_str; const char * currency_str; sqlEscape *escape; diff --git a/src/backend/postgres/price.h b/src/backend/postgres/price.h index 42405543ec..0452e4a24f 100644 --- a/src/backend/postgres/price.h +++ b/src/backend/postgres/price.h @@ -31,7 +31,7 @@ void pgendGetCommodity (PGBackend *be, const char * unique_name); void pgendStorePriceDB (PGBackend *be, GNCBook *book); void pgendStorePriceDBNoLock (PGBackend *be, GNCBook *book); void pgendGetAllPricesInBook (PGBackend *be, GNCBook *); -void pgendPriceFind (Backend *bend, GNCPriceLookup *look); +void pgendPriceFind (Backend *bend, gpointer olook); void pgend_price_begin_edit (Backend * bend, GNCPrice *pr); diff --git a/src/backend/postgres/txn.c b/src/backend/postgres/txn.c index afd36ac400..b1e94dba5b 100644 --- a/src/backend/postgres/txn.c +++ b/src/backend/postgres/txn.c @@ -39,6 +39,7 @@ #include "gnc-commodity.h" #include "gnc-engine-util.h" #include "gnc-event.h" +#include "gnc-pricedb.h" #include "guid.h" #include "Transaction.h" #include "TransactionP.h"