X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=splice.h;h=66075a1be540391f52996753165a91928738bfe2;hb=refs%2Fheads%2Fmaster;hp=386da4ee88b0105fcb0aa0352d82ca0e52c39d2d;hpb=ae118771beb2f65cb1c97f0701b0e1f465e72dc5;p=splice.git diff --git a/splice.h b/splice.h index 386da4e..66075a1 100644 --- a/splice.h +++ b/splice.h @@ -37,6 +37,13 @@ #endif /* SPLICE_F_MOVE defined */ +/* + * SPLICE_F_UNMAP was introduced later, so check for that seperately + */ +#ifndef SPLICE_F_UNMAP +#define SPLICE_F_UNMAP (0x10) /* undo vmsplice map */ +#endif + static inline int ssplice(int fdin, loff_t *off_in, int fdout, loff_t *off_out, size_t len, unsigned int flags) {