summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2011-10-16 11:31:30 +0200
committerAndreas Baumann <abaumann@yahoo.com>2011-10-16 11:31:30 +0200
commitff4417a0cc344eed56d5ddd42b2a4cfd69b17c43 (patch)
tree5ba2b065ac96e3113ebfcc3c2602445ad92b7a43 /src
parent61adb6a1ba66d0990ccc72b6a105797987c0a4f3 (diff)
downloadsqlitexx-ff4417a0cc344eed56d5ddd42b2a4cfd69b17c43.tar.gz
sqlitexx-ff4417a0cc344eed56d5ddd42b2a4cfd69b17c43.tar.bz2
fixed for Linux 3.0, fixed a gcc warning about an unused variable
Diffstat (limited to 'src')
-rw-r--r--src/connection.cpp2
-rw-r--r--src/port/sys_internal.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index 5db2e4d..4fab4f5 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -91,7 +91,7 @@ ostream& operator<<( ostream& o, const connection& c ) {
result connection::exec( string sql ) {
ostringstream s;
s << "internal_" << *this << "_" << ++_internal_tno;
- prepare::declaration decl = prepare( s.str( ), sql );
+ (void)prepare( s.str( ), sql );
return prepared_exec( s.str( ) );
}
diff --git a/src/port/sys_internal.h b/src/port/sys_internal.h
index 5b6a0b2..b846810 100644
--- a/src/port/sys_internal.h
+++ b/src/port/sys_internal.h
@@ -33,7 +33,16 @@
#error unknown platform
#endif /* defined OS_MINOR_VERSION == 6 */
#else
+#if OS_MAJOR_VERSION == 3
+#if OS_MINOR_VERSION == 0
+#define _XOPEN_SOURCE 600
+#define HAVE_STRDUP
+#else
+ #error unknown platform
+#endif /* defined OS_MINOR_VERSION == 0 */
+#else
#error unknown platform
+#endif /* defined OS_MAJOR_VERSION == 3 */
#endif /* defined OS_MAJOR_VERSION == 2 */
#endif /* defined LINUX */