[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT LWIP PATCH 1/3] Import sendfile.h from musl
Copied as is from the official musl git mirror git://git.musl-libc.org/musl, commit 06d4075a. Signed-off-by: Mihai Pogonaru <pogonarumihai@xxxxxxxxx> --- Makefile.uk | 2 ++ musl-imported/include/sys/sendfile.h | 22 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 musl-imported/include/sys/sendfile.h diff --git a/Makefile.uk b/Makefile.uk index 79a6dc6..a229f87 100644 --- a/Makefile.uk +++ b/Makefile.uk @@ -59,6 +59,8 @@ LIBLWIP_EXTRACTED=$(LIBLWIP_ORIGIN)/$(LIBLWIP_ZIPNAME)/src ################################################################################ CINCLUDES-$(CONFIG_LIBLWIP) += -I$(LIBLWIP_BASE)/include -I$(LIBLWIP_EXTRACTED)/include CXXINCLUDES-$(CONFIG_LIBLWIP) += -I$(LIBLWIP_BASE)/include -I$(LIBLWIP_EXTRACTED)/include +CINCLUDES-$(CONFIG_LIBLWIP) += -I$(LIBLWIP_BASE)/musl-imported/include +CXXINCLUDES-$(CONFIG_LIBLWIP) += -I$(LIBLWIP_BASE)/musl-imported/include ################################################################################ # Library flags diff --git a/musl-imported/include/sys/sendfile.h b/musl-imported/include/sys/sendfile.h new file mode 100644 index 0000000..e7570d8 --- /dev/null +++ b/musl-imported/include/sys/sendfile.h @@ -0,0 +1,22 @@ +#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) || defined(_GNU_SOURCE) +#define sendfile64 sendfile +#define off64_t off_t +#endif + +#ifdef __cplusplus +} +#endif + +#endif -- 2.11.0 _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |