diff --git a/src/interfaces/odbc/misc.c b/src/interfaces/odbc/misc.c
index 443d1f47b3cfda0cdb64cba4699a5239c82210a8..dc505115fe39ac0802cdc24059598953c47d9e65 100644
--- a/src/interfaces/odbc/misc.c
+++ b/src/interfaces/odbc/misc.c
@@ -15,6 +15,7 @@
 #include "psqlodbc.h"
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <stdarg.h>
 #include <string.h>
 
diff --git a/src/interfaces/odbc/statement.h b/src/interfaces/odbc/statement.h
index 9b52f25694a7af2916f5e6c418054b15c5b505a7..6cb0f6ccd39fda3a198c5afa7c4801254f23e1aa 100644
--- a/src/interfaces/odbc/statement.h
+++ b/src/interfaces/odbc/statement.h
@@ -102,7 +102,7 @@ enum
 	STMT_PARSE_NONE = 0,
 	STMT_PARSE_COMPLETE,
 	STMT_PARSE_INCOMPLETE,
-	STMT_PARSE_FATAL,
+	STMT_PARSE_FATAL
 };
 
 /*	Result style */
@@ -110,7 +110,7 @@ enum
 {
 	STMT_FETCH_NONE = 0,
 	STMT_FETCH_NORMAL,
-	STMT_FETCH_EXTENDED,
+	STMT_FETCH_EXTENDED
 };
 
 typedef struct