mirror of
https://github.com/owntone/owntone-server.git
synced 2025-04-22 19:45:43 -04:00
Fix stat time fields
This commit is contained in:
parent
e37be38297
commit
eac98e0a61
@ -34,7 +34,7 @@ case $host in
|
|||||||
*linux*)
|
*linux*)
|
||||||
CPPFLAGS="$CPPFLAGS -DHAVE_SOCKLEN_T";;
|
CPPFLAGS="$CPPFLAGS -DHAVE_SOCKLEN_T";;
|
||||||
*darwin*)
|
*darwin*)
|
||||||
CPPFLAGS="$CPPFLAGS -no-cpp-precomp -DHAVE_SOCKADDR_SA_LEN -DHAVE_SOCKLEN_T"
|
CPPFLAGS="$CPPFLAGS -no-cpp-precomp -DHAVE_SOCKADDR_SA_LEN -DHAVE_SOCKLEN_T -DMAC"
|
||||||
LDFLAGS="$LDFLAGS -framework CoreFoundation"
|
LDFLAGS="$LDFLAGS -framework CoreFoundation"
|
||||||
|
|
||||||
AM_CONDITIONAL(COND_REND_OSX,true)
|
AM_CONDITIONAL(COND_REND_OSX,true)
|
||||||
|
@ -346,9 +346,15 @@ int scan_foreground(char *path) {
|
|||||||
mp3file.path=mp3_path;
|
mp3file.path=mp3_path;
|
||||||
mp3file.fname=de.d_name;
|
mp3file.fname=de.d_name;
|
||||||
|
|
||||||
|
#ifdef MAC /* wtf is this about? */
|
||||||
mp3file.mtime=sb.st_mtimespec.tv_sec;
|
mp3file.mtime=sb.st_mtimespec.tv_sec;
|
||||||
mp3file.atime=sb.st_atimespec.tv_sec;
|
mp3file.atime=sb.st_atimespec.tv_sec;
|
||||||
mp3file.ctime=sb.st_ctimespec.tv_sec;
|
mp3file.ctime=sb.st_ctimespec.tv_sec;
|
||||||
|
#else
|
||||||
|
mp3file.mtime=sb.st_mtime;
|
||||||
|
mp3file.atime=sb.st_atime;
|
||||||
|
mp3file.ctime=sb.st_ctime;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* FIXME; assumes that st_ino is a u_int_32 */
|
/* FIXME; assumes that st_ino is a u_int_32 */
|
||||||
mp3file.id=sb.st_ino;
|
mp3file.id=sb.st_ino;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user