X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvcl%2Fldp.c;h=e53a61e8e8c0c9e8809eef12692d57de18119132;hb=e16707b5b2195fda47c1a3db7ba61f30055d2dbc;hp=7aa38305249db4dfac1b46392c75275aa1c97c0d;hpb=211b9f6ad3e2c4d1b54e85cebf062571ced969b2;p=vpp.git diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c index 7aa38305249..e53a61e8e8c 100644 --- 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; } +#ifdef HAVE_FCNTL64 +int +fcntl64 (int fd, int cmd, ...) +#else int fcntl (int fd, int cmd, ...) +#endif { vls_handle_t vlsh; int rv = 0; @@ -531,7 +536,11 @@ fcntl (int fd, int cmd, ...) } else { +#ifdef HAVE_FCNTL64 + rv = libc_vfcntl64 (fd, cmd, ap); +#else rv = libc_vfcntl (fd, cmd, ap); +#endif } va_end (ap);