avoid unused code for linux
authorLaurent Mazet <mazet@softndesign.org>
Thu, 23 Jan 2025 22:13:16 +0000 (23:13 +0100)
committerLaurent Mazet <mazet@softndesign.org>
Thu, 23 Jan 2025 22:13:16 +0000 (23:13 +0100)
function.c

index a8f9c4eb2bfbf9abd7edfca5465f91f1f7c841a9..8a7ee41a10e2308fd80432d81637cc1596472a5a 100644 (file)
@@ -104,6 +104,7 @@ list_t *_addelement (list_t *list, char *dirname, char *filename, type_t type)
     char *name = newfilename (dirname, filename);
     STAT (name, &sb);
 
+#ifdef WIN32
     if (type == type_unkn_e) {
         switch (sb.st_mode & S_IFMT) {
         case S_IFBLK:
@@ -133,6 +134,7 @@ list_t *_addelement (list_t *list, char *dirname, char *filename, type_t type)
 #endif
         }
     }
+#endif
 
     size_t size = 0;
     if (type == type_reg_e) {