mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-13 03:09:51 +03:00
11 lines
285 B
Diff
11 lines
285 B
Diff
--- a/file.c
|
|
+++ b/file.c
|
|
@@ -1846,7 +1846,7 @@ int get_socket_fd(int index) {
|
|
#if defined ANDROID || defined FREEBSD
|
|
return(file_table[index].fdes->_file);
|
|
#else
|
|
- return(file_table[index].fdes->_fileno);
|
|
+ return(fileno(file_table[index].fdes));
|
|
#endif
|
|
#endif
|
|
#endif
|