logo

utils-std

Collection of commonly available Unix tools
commit: 2e78667cc401501e4b6729ff0f41867d3167123a
parent a8363b592dd8eb119ed85e5eeb93b66f59c33c95
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Sun, 31 Mar 2024 17:30:09 +0200

cmd/cat: __linux__ → HAS_SPLICE

Diffstat:

Mcmd/cat.c6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmd/cat.c b/cmd/cat.c @@ -40,7 +40,7 @@ concat(int fd, const char *fdname) return 0; } -#ifdef __linux__ +#ifdef HAS_SPLICE int fd_copy(int fd, const char *fdname) { @@ -71,9 +71,9 @@ again: return 0; } -#else // __linux__ +#else // HAS_SPLICE #define fd_copy concat -#endif // __linux__ +#endif // HAS_SPLICE int main(int argc, char *argv[])