aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libbb/copyfd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libbb/copyfd.c b/libbb/copyfd.c
index 7e3531903..921fe3f81 100644
--- a/libbb/copyfd.c
+++ b/libbb/copyfd.c
@@ -119,8 +119,11 @@ static off_t bb_full_fd_action(int src_fd, int dst_fd, off_t size)
119 } 119 }
120 out: 120 out:
121 121
122/* some environments don't have munmap(), hide it in #if */
123#if CONFIG_FEATURE_COPYBUF_KB > 4
122 if (buffer_size > 4 * 1024) 124 if (buffer_size > 4 * 1024)
123 munmap(buffer, buffer_size); 125 munmap(buffer, buffer_size);
126#endif
124 return status ? -1 : total; 127 return status ? -1 : total;
125} 128}
126 129