aboutsummaryrefslogtreecommitdiff
path: root/ext/misc/vfslog.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-10-11 15:05:05 +0000
committerdrh <drh@noemail.net>2013-10-11 15:05:05 +0000
commit4f991890510bbc30a83f1ef1f70c080a09b45b1a (patch)
tree9947a71c65e7b1bf1b83b713345754e246ed50ef /ext/misc/vfslog.c
parent80e0b72e8def34ee3b807e4b2e89519a3e590519 (diff)
downloadsqlite-4f991890510bbc30a83f1ef1f70c080a09b45b1a.tar.gz
sqlite-4f991890510bbc30a83f1ef1f70c080a09b45b1a.zip
Fix various harmless compiler warnings. Change the "warnings.sh" script to
work with STAT4 instead of STAT3. FossilOrigin-Name: 7df06684ab36bfdad9e9aca6940b7a665c2a0cb5
Diffstat (limited to 'ext/misc/vfslog.c')
-rw-r--r--ext/misc/vfslog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/misc/vfslog.c b/ext/misc/vfslog.c
index 2f7c492f8..7cc108330 100644
--- a/ext/misc/vfslog.c
+++ b/ext/misc/vfslog.c
@@ -30,6 +30,9 @@
#include <string.h>
#include <assert.h>
#include <stdio.h>
+#if SQLITE_OS_UNIX
+# include <unistd.h>
+#endif
/*
** Forward declaration of objects used by this utility
@@ -284,11 +287,13 @@ static VLogLog *vlogLogOpen(const char *zFilename){
if( pTemp ){
sqlite3_free(pTemp);
}else{
+#if SQLITE_OS_UNIX
char zHost[200];
zHost[0] = 0;
gethostname(zHost, sizeof(zHost)-1);
zHost[sizeof(zHost)-1] = 0;
vlogLogPrint(pLog, tNow, 0, "IDENT", getpid(), -1, zHost, 0);
+#endif
}
if( pLog && isJournal ) pLog++;
pLog->nRef++;