diff options
author | drh <drh@noemail.net> | 2010-09-25 14:13:17 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2010-09-25 14:13:17 +0000 |
commit | e8b0c9b4eebbf73a281cba181542151ce682500e (patch) | |
tree | 136193ef262af8cadef77e0d12c3cca068f7e759 /src/os_unix.c | |
parent | 56f0571ff7ed2ce7927052ade3a9ed44cce8f96c (diff) | |
download | sqlite-e8b0c9b4eebbf73a281cba181542151ce682500e.tar.gz sqlite-e8b0c9b4eebbf73a281cba181542151ce682500e.zip |
Do not call gethostuuid() on MacOS 10.4 and earlier, since it is not
supported there.
FossilOrigin-Name: 44deaaefeeb95827daeaf84aa5e205b456e75b40
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index e0b61f978..f1a65949f 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -5382,6 +5382,8 @@ static int proxyGetHostID(unsigned char *pHostID, int *pError){ assert(PROXY_HOSTIDLEN == sizeof(uuid_t)); memset(pHostID, 0, PROXY_HOSTIDLEN); +#if defined(__MAX_OS_X_VERSION_MIN_REQUIRED)\ + && __MAC_OS_X_VERSION_MIN_REQUIRED<1050 if( gethostuuid(pHostID, &timeout) ){ int err = errno; if( pError ){ @@ -5389,6 +5391,7 @@ static int proxyGetHostID(unsigned char *pHostID, int *pError){ } return SQLITE_IOERR; } +#endif #ifdef SQLITE_TEST /* simulate multiple hosts by creating unique hostid file paths */ if( sqlite3_hostid_num != 0){ |