Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
vcl: Handle newer Glibc (>2.28) where fcntl is actually fcntl64
[vpp.git]
/
src
/
vcl
/
ldp.c
diff --git
a/src/vcl/ldp.c
b/src/vcl/ldp.c
index
7aa3830
..
e53a61e
100644
(file)
--- a/
src/vcl/ldp.c
+++ b/
src/vcl/ldp.c
@@
-482,8
+482,13
@@
writev (int fd, const struct iovec * iov, int iovcnt)
return size;
}
return size;
}
+#ifdef HAVE_FCNTL64
+int
+fcntl64 (int fd, int cmd, ...)
+#else
int
fcntl (int fd, int cmd, ...)
int
fcntl (int fd, int cmd, ...)
+#endif
{
vls_handle_t vlsh;
int rv = 0;
{
vls_handle_t vlsh;
int rv = 0;
@@
-531,7
+536,11
@@
fcntl (int fd, int cmd, ...)
}
else
{
}
else
{
+#ifdef HAVE_FCNTL64
+ rv = libc_vfcntl64 (fd, cmd, ap);
+#else
rv = libc_vfcntl (fd, cmd, ap);
rv = libc_vfcntl (fd, cmd, ap);
+#endif
}
va_end (ap);
}
va_end (ap);