mirror of
https://github.com/containers/fuse-overlayfs.git
synced 2025-09-11 16:27:14 -04:00
build: provide replacement for TEMP_FAILURE_RETRY if not present
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
57b1e98d69
commit
f17f15a48b
10
main.c
10
main.c
@ -73,6 +73,16 @@
|
|||||||
|
|
||||||
#include <utils.h>
|
#include <utils.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
|
||||||
|
|
||||||
|
|
||||||
#ifndef HAVE_OPEN_BY_HANDLE_AT
|
#ifndef HAVE_OPEN_BY_HANDLE_AT
|
||||||
struct file_handle
|
struct file_handle
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user