summaryrefslogtreecommitdiff
authorbrad <brad>2004-04-06 13:12:05 (UTC)
committer brad <brad>2004-04-06 13:12:05 (UTC)
commit6821faed5fd1db0861dff48a5660a3336211b3be (patch) (side-by-side diff)
tree5cb18c3bf36337648464a23a42890bded169b73c
parent4aa395c79d046fafe11d0e9c9838f6565019d7d3 (diff)
downloadopie-6821faed5fd1db0861dff48a5660a3336211b3be.zip
opie-6821faed5fd1db0861dff48a5660a3336211b3be.tar.gz
opie-6821faed5fd1db0861dff48a5660a3336211b3be.tar.bz2
<sigh> gcc 2.95.3 compile fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--libopie2/opiedb/osqlitedriver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libopie2/opiedb/osqlitedriver.h b/libopie2/opiedb/osqlitedriver.h
index adec331..d5ab224 100644
--- a/libopie2/opiedb/osqlitedriver.h
+++ b/libopie2/opiedb/osqlitedriver.h
@@ -1,50 +1,53 @@
#ifndef OSQL_LITE_DRIVER_H
#define OSQL_LITE_DRIVER_H
#include <sqlite.h>
+#if defined (__GNUC__) && (__GNUC__ < 3)
+#include <sys/types.h>
+#endif
#include <regex.h>
#include "osqldriver.h"
#include "osqlerror.h"
#include "osqlresult.h"
namespace Opie {
namespace DB {
namespace Internal {
struct sqregex {
char *regex_raw;
regex_t regex_c;
};
class OSQLiteDriver : public OSQLDriver {
Q_OBJECT
public:
OSQLiteDriver( QLibrary *lib = 0l );
~OSQLiteDriver();
QString id()const;
void setUserName( const QString& );
void setPassword( const QString& );
void setUrl( const QString& url );
void setOptions( const QStringList& );
bool open();
bool close();
OSQLError lastError();
OSQLResult query( OSQLQuery* );
OSQLTable::ValueList tables()const;
private:
OSQLError m_lastE;
OSQLResult m_result;
OSQLResultItem m_items;
int handleCallBack( int, char**, char** );
static int call_back( void*, int, char**, char** );
QString m_url;
sqlite *m_sqlite;
sqregex sqreg;
};
}
}
}
#endif