From: Laurent Mazet Date: Thu, 23 Jan 2025 22:13:16 +0000 (+0100) Subject: avoid unused code for linux X-Git-Tag: v1.0~10 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=40f4d2881a263b46af2a1ee9a26b0e3c2d5b5397;p=fm.git avoid unused code for linux --- diff --git a/function.c b/function.c index a8f9c4e..8a7ee41 100644 --- a/function.c +++ b/function.c @@ -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) {