mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-21 21:52:04 +03:00
25e6fee27f
these badly pollute the namespace with macros whenever _GNU_SOURCE is defined, which is always the case with g++, and especially tends to interfere with C++ constructs. as our implementation of these was macro-only, their removal cannot affect any existing binaries. at the source level, portable software should be prepared for them not to exist. for now, they are left in place with explicit _LARGEFILE64_SOURCE. this provides an easy temporary path for integrators/distributions to get packages building again right away if they break while working on a proper, upstreamable fix. the intent is that this be a very short-term measure and that the macros be removed entirely in the next release cycle.
23 lines
305 B
C
23 lines
305 B
C
#ifndef _SYS_SENDFILE_H
|
|
#define _SYS_SENDFILE_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <features.h>
|
|
#include <unistd.h>
|
|
|
|
ssize_t sendfile(int, int, off_t *, size_t);
|
|
|
|
#if defined(_LARGEFILE64_SOURCE)
|
|
#define sendfile64 sendfile
|
|
#define off64_t off_t
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|