projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6368534
)
eina file - fd close - handle fbsd 11 syscall abi as it broke in 12
author
Carsten Haitzler (Rasterman)
<raster@rasterman.com>
Mon, 24 Aug 2020 19:07:56 +0000
(20:07 +0100)
committer
Jongmin Lee
<jm105.lee@samsung.com>
Mon, 24 Aug 2020 21:40:56 +0000
(06:40 +0900)
src/lib/eina/eina_file.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_file.c
b/src/lib/eina/eina_file.c
index
e88cd9c
..
14460b2
100644
(file)
--- 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)
# define do_getdents(fd, buf, size) getdents(fd, buf, size)
typedef struct
{
+#if __FreeBSD__ > 11
ino_t d_ino;
off_t d_off;
unsigned short d_reclen;
@@
-1276,6
+1277,13
@@
typedef struct
unsigned short d_namlen;
unsigned short ____pad1;
char d_name[4096];
+#else
+ __uint32_t d_fileno;
+ __uint16_t d_reclen;
+ __uint8_t d_type;
+ __uint8_t d_namlen;
+ char d_name[4096];
+#endif
} Dirent;
#elif defined(__OpenBSD__)
# define do_getdents(fd, buf, size) getdents(fd, buf, size)