From f29bacfee1f04ddac773091e7fa05bb2b733ccd4 Mon Sep 17 00:00:00 2001
From: Sergey Fedorov <barracuda@macos-powerpc.org>
Date: Tue, 5 Nov 2024 22:33:08 +0800
Subject: [PATCH 11/12] disk_bsd: no support for creation time on ppc

---
 src/detection/disk/disk_bsd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/detection/disk/disk_bsd.c b/src/detection/disk/disk_bsd.c
index 957314f1..ad7c4404 100644
--- a/src/detection/disk/disk_bsd.c
+++ b/src/detection/disk/disk_bsd.c
@@ -175,7 +175,7 @@ const char* ffDetectDisksImpl(FFDiskOptions* options, FFlist* disks)
         #ifdef __OpenBSD__
         #define st_birthtimespec __st_birthtim
         #endif
-        #ifndef __DragonFly__
+        #if !defined(__DragonFly__) && !(defined(__APPLE__) && defined(__ppc__))
         struct stat st;
         if(stat(fs->f_mntonname, &st) == 0 && st.st_birthtimespec.tv_sec > 0)
             disk->createTime = (uint64_t)((st.st_birthtimespec.tv_sec * 1000) + (st.st_birthtimespec.tv_nsec / 1000000));
-- 
2.47.0

