mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-20 01:26:38 +02:00
13 lines
252 B
Diff
13 lines
252 B
Diff
--- a/sock.c
|
|
+++ b/sock.c
|
|
@@ -54,8 +54,8 @@
|
|
static int
|
|
isfdtype(int fd, int fdtype)
|
|
{
|
|
- struct stat64 st;
|
|
- if (fstat64(fd, &st) != 0)
|
|
+ struct stat st;
|
|
+ if (fstat(fd, &st) != 0)
|
|
return -1;
|
|
return ((st.st_mode & S_IFMT) == (mode_t)fdtype);
|
|
}
|