aboutsummaryrefslogtreecommitdiff
path: root/src/os_unix.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2010-06-01 00:03:57 +0000
committerdrh <drh@noemail.net>2010-06-01 00:03:57 +0000
commitb29ad8502e626a97a5b9b0fbdc5c634514db8f47 (patch)
treea5f00a64cfdc6004d4b576a2cee67a0ba487ef23 /src/os_unix.c
parent61e4acecf48acd9569ba947a863ca518fa442236 (diff)
downloadsqlite-b29ad8502e626a97a5b9b0fbdc5c634514db8f47.tar.gz
sqlite-b29ad8502e626a97a5b9b0fbdc5c634514db8f47.zip
Fix os_unix.c so that it will compile and build on a Mac.
FossilOrigin-Name: bc707c83e5f9849d9d201d695d0d071ca9ed93cb
Diffstat (limited to 'src/os_unix.c')
-rw-r--r--src/os_unix.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/os_unix.c b/src/os_unix.c
index c6ca5fc46..ad95cf10a 100644
--- a/src/os_unix.c
+++ b/src/os_unix.c
@@ -2066,7 +2066,7 @@ static int semClose(sqlite3_file *id) {
semUnlock(id, NO_LOCK);
assert( pFile );
unixEnterMutex();
- releaseLockInfo(pFile->pInode);
+ releaseInodeInfo(pFile->pInode);
unixLeaveMutex();
closeUnixFile(id);
}
@@ -2533,7 +2533,7 @@ static int afpClose(sqlite3_file *id) {
*/
setPendingFd(pFile);
}
- releaseLockInfo(pFile->pInode);
+ releaseInodeInfo(pFile->pInode);
sqlite3_free(pFile->lockingContext);
rc = closeUnixFile(id);
unixLeaveMutex();
@@ -3684,12 +3684,8 @@ static int unixShmLock(
static void unixShmBarrier(
sqlite3_file *fd /* Database file holding the shared memory */
){
-#ifdef __GNUC__
- __sync_synchronize();
-#else
- unixMutexEnter();
- unixMutexLeave();
-#endif
+ unixEnterMutex();
+ unixLeaveMutex();
}