Skip to content

Commit

Permalink
scripts/cmd.c: fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
2096779623 committed Aug 31, 2024
1 parent 3bd5ca4 commit 64cc887
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ along with termux-tools. If not, see
#include <fcntl.h>
#include <sys/wait.h>

#ifndef TEMP_FAILURE_RETRY
#define TEMP_FAILURE_RETRY(expression) \
(__extension__({ \
long int __result; \
do \
__result = (long int)(expression); \
while (__result == -1L && errno == EINTR); \
__result; \
}))
#endif

void pump(int in_fd, int out_fd) {
char buf[4096];
ssize_t sz, t;
Expand Down

0 comments on commit 64cc887

Please sign in to comment.