mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
Improve compatibility with musl-libc (Bug#48789)
* lib-src/seccomp-filter.c (export_filter): Remove use of nonstandard macro TEMP_FAILURE_RETRY.
This commit is contained in:
parent
a2a0b70c8b
commit
8fa624b39b
@ -131,9 +131,12 @@ export_filter (const char *file,
|
||||
int (*function) (const scmp_filter_ctx, int),
|
||||
const char *name)
|
||||
{
|
||||
int fd = TEMP_FAILURE_RETRY (
|
||||
open (file, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY | O_CLOEXEC,
|
||||
0644));
|
||||
int fd;
|
||||
do
|
||||
fd = open (file,
|
||||
O_WRONLY | O_CREAT | O_TRUNC | O_BINARY | O_CLOEXEC,
|
||||
0644);
|
||||
while (fd < 0 && errno == EINTR);
|
||||
if (fd < 0)
|
||||
fail (errno, "open %s", file);
|
||||
int status = function (ctx, fd);
|
||||
|
Loading…
Reference in New Issue
Block a user