aboutsummaryrefslogtreecommitdiff
path: root/common/lazy-ptr
diff options
context:
space:
mode:
Diffstat (limited to 'common/lazy-ptr')
-rw-r--r--common/lazy-ptr/driver.cxx1
-rw-r--r--common/lazy-ptr/makefile2
2 files changed, 2 insertions, 1 deletions
diff --git a/common/lazy-ptr/driver.cxx b/common/lazy-ptr/driver.cxx
index 3be6517..ffe692c 100644
--- a/common/lazy-ptr/driver.cxx
+++ b/common/lazy-ptr/driver.cxx
@@ -11,6 +11,7 @@
#include <iostream>
#include <odb/database.hxx>
+#include <odb/session.hxx>
#include <odb/transaction.hxx>
#include <odb/details/config.hxx> // ODB_CXX11_*
diff --git a/common/lazy-ptr/makefile b/common/lazy-ptr/makefile
index 77053e3..f0344c9 100644
--- a/common/lazy-ptr/makefile
+++ b/common/lazy-ptr/makefile
@@ -35,7 +35,7 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---table-prefix lazy_ptr_
+--generate-session --table-prefix lazy_ptr_
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)