[Tizen 6.0] Support build with Glibc 2.31
_IO_FILE was removed, all uses changed to FILE.
da_io_stdc.c:427:47: error: unknown type name '_IO_FILE'; did you mean '__FILE'?
427 | HANDLER_WRAPPERS(file_feature, int, _IO_getc, _IO_FILE*, stream)
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
[Tizen 6.0] Enable build with -Wformat-truncation warning
helper/dahelper.c:94:51: error: 'snprintf' output may be truncated before the
last format character [-Werror=format-truncation=]
94 | snprintf(path, (size_t) MAX_PATH_LENGTH, "%s/%s",
| ^
helper/dahelper.c:94:4: note: 'snprintf' output 2 or more bytes (assuming 257)
into a destination of size 256
94 | snprintf(path, (size_t) MAX_PATH_LENGTH, "%s/%s",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
95 | dirname, entry->d_name);
| ~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Mikhail Kashkarov <m.kashkarov@partner.samsung.com>
new glibc
helper/dahelper.c:92:2: error: 'readdir_r' is deprecated [-Werror=deprecated-declarations]
92 | while ((readdir_r(dir, dirent_r, &entry) == 0) && entry) {
| ^~~~~
In file included from helper/dahelper.c:34:
/usr/include/dirent.h:183:12: note: declared here
183 | extern int readdir_r (DIR *__restrict __dirp,
Change-Id: I82a75663c9a9175da3656de64e7d0b67381bc460