File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ jobs:
263263
264264 - uses : actions/checkout@v4.2.2
265265 with :
266- submodules : ${{ contains(matrix.make, 'LLAMA= ') && 'true' || 'false' }}
266+ submodules : ${{ ! contains(matrix.make, 'OMIT_LOCAL_ENGINE=1 ') && 'true' || 'false' }}
267267
268268 - name : windows install sqlite (remote builds)
269269 if : matrix.name == 'windows' && matrix.variant == 'remote'
Original file line number Diff line number Diff line change 1010#include <string.h>
1111#include <stdlib.h>
1212#include <stdbool.h>
13+ #include <stdio.h>
14+ #include <time.h>
1315#include <sys/stat.h>
1416
1517#include "dbmem-utils.h"
@@ -167,10 +169,11 @@ int dbmem_compute_uuid_v7 (uint8_t value[DBMEM_UUID_LEN]) {
167169
168170 // get current timestamp in ms
169171 struct timespec ts ;
170- #ifdef __ANDROID__
171- if (clock_gettime (CLOCK_REALTIME , & ts ) != 0 ) return -1 ;
172- #else
172+ #if defined(__APPLE__ )
173173 if (timespec_get (& ts , TIME_UTC ) == 0 ) return -1 ;
174+ #else
175+ // Use clock_gettime for Linux/Android/Windows (timespec_get not available on older glibc)
176+ if (clock_gettime (CLOCK_REALTIME , & ts ) != 0 ) return -1 ;
174177 #endif
175178
176179 // add timestamp part to UUID
You can’t perform that action at this time.
0 commit comments