summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmakefiles/gmake/guess_env5
-rw-r--r--src/connection.cpp2
-rw-r--r--src/port/sys_internal.h9
3 files changed, 14 insertions, 2 deletions
diff --git a/makefiles/gmake/guess_env b/makefiles/gmake/guess_env
index 2e4f3de..136e21b 100755
--- a/makefiles/gmake/guess_env
+++ b/makefiles/gmake/guess_env
@@ -15,6 +15,9 @@ case "$UNAME_SYSTEM.$UNAME_RELEASE" in
if test -f /etc/arch-release; then
LINUX_DIST='arch'
LINUX_REV='current'
+ if test "$OS_MAJOR_VERSION" = "3"; then
+ OS_MINOR_VERSION=`echo $UNAME_RELEASE | cut -d . -f 2 | cut -d - -f 1`
+ fi
elif test -f /etc/debian_version; then
LINUX_DIST='debian'
LINUX_REV=`cat /etc/debian_version | cut -d . -f 1`
@@ -67,7 +70,7 @@ esac
case "$UNAME_MACHINE" in
i*86*) ARCH=x86
;;
- x86_64) ARCH=x86_64
+ x86_64|amd64) ARCH=x86_64
;;
sun4u) ARCH=sun4u
;;
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 */