Lines 406-412
Link Here
|
406 |
private: |
406 |
private: |
407 |
DIR *directory; |
407 |
DIR *directory; |
408 |
struct dirent *result; |
408 |
struct dirent *result; |
409 |
#if !__GLIBC_PREREQ(2, 24) // readdir_r() is deprecated as of GLIBC 2.24 |
409 |
//#if !__GLIBC_PREREQ(2, 24) // readdir_r() is deprecated as of GLIBC 2.24 |
|
|
410 |
#if !defined(__GLIBC__) || \ |
411 |
(defined(__GLIBC__) && (!__GLIBC_PREREQ(2, 24)) || !defined(_GNU_SOURCE)) |
410 |
union { // according to "The GNU C Library Reference Manual" |
412 |
union { // according to "The GNU C Library Reference Manual" |
411 |
struct dirent d; |
413 |
struct dirent d; |
412 |
char b[offsetof(struct dirent, d_name) + NAME_MAX + 1]; |
414 |
char b[offsetof(struct dirent, d_name) + NAME_MAX + 1]; |