Skip to content

Commit

Permalink
Merge pull request #13 from DanySpin97/master
Browse files Browse the repository at this point in the history
Fix musl compilation by adding TEMP_FAILURE_RETRY
  • Loading branch information
matthiasclasen committed Dec 7, 2019
2 parents 9f6c562 + da9c2ae commit cc837f6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dbus-proxy.c
Expand Up @@ -30,6 +30,15 @@
#include <errno.h>

#include "flatpak-proxy.h"
// Taken from glibc unistd.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

static const char *argv0;
static GList *proxies;
Expand Down

0 comments on commit cc837f6

Please sign in to comment.