summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_file.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-24 20:07:56 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2020-08-24 20:09:06 +0100
commit8eefc204fcbe0f577cd8ac5964863156cd259cb4 (patch)
tree1da6660385890460796cdb110eb39fece2cc3006 /src/lib/eina/eina_file.c
parente546d24a2e8bf39838700e66c643cdec8c68657d (diff)
eina file - fd close - handle fbsd 11 syscall abi as it broke in 12
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_file.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/eina/eina_file.c b/src/lib/eina/eina_file.c
index e88cd9c73c..14460b2f01 100644
--- a/src/lib/eina/eina_file.c
+++ b/src/lib/eina/eina_file.c
@@ -1268,6 +1268,7 @@ eina_file_statat(void *container, Eina_File_Direct_Info *info, Eina_Stat *st)
1268# define do_getdents(fd, buf, size) getdents(fd, buf, size) 1268# define do_getdents(fd, buf, size) getdents(fd, buf, size)
1269typedef struct 1269typedef struct
1270{ 1270{
1271#if __FreeBSD__ > 11
1271 ino_t d_ino; 1272 ino_t d_ino;
1272 off_t d_off; 1273 off_t d_off;
1273 unsigned short d_reclen; 1274 unsigned short d_reclen;
@@ -1276,6 +1277,13 @@ typedef struct
1276 unsigned short d_namlen; 1277 unsigned short d_namlen;
1277 unsigned short ____pad1; 1278 unsigned short ____pad1;
1278 char d_name[4096]; 1279 char d_name[4096];
1280#else
1281 __uint32_t d_fileno;
1282 __uint16_t d_reclen;
1283 __uint8_t d_type;
1284 __uint8_t d_namlen;
1285 char d_name[4096];
1286#endif
1279} Dirent; 1287} Dirent;
1280#elif defined(__OpenBSD__) 1288#elif defined(__OpenBSD__)
1281# define do_getdents(fd, buf, size) getdents(fd, buf, size) 1289# define do_getdents(fd, buf, size) getdents(fd, buf, size)