diff options
author | Leo <thinkabit.ukim@gmail.com> | 2020-01-09 08:56:33 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2020-01-09 08:56:33 +0100 |
commit | b34c159aafb5053578ef5222224850218c3497eb (patch) | |
tree | 598c6d3f3956d25cd201c8608aa6439c27da8907 /community/low-memory-monitor/musl.patch | |
parent | b08a407c1d942cf0445a40a5450038963f1e894e (diff) | |
download | aports-b34c159aafb5053578ef5222224850218c3497eb.tar.bz2 aports-b34c159aafb5053578ef5222224850218c3497eb.tar.xz |
community/low-memory-monitor: move from testing
Diffstat (limited to 'community/low-memory-monitor/musl.patch')
-rw-r--r-- | community/low-memory-monitor/musl.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/community/low-memory-monitor/musl.patch b/community/low-memory-monitor/musl.patch new file mode 100644 index 0000000000..b2faac74dd --- /dev/null +++ b/community/low-memory-monitor/musl.patch @@ -0,0 +1,22 @@ +diff --git a/src/memory-pressure-monitor.c b/src/memory-pressure-monitor.c +index f59af0a..0863c13 100644 +--- a/src/memory-pressure-monitor.c ++++ b/src/memory-pressure-monitor.c +@@ -12,6 +12,16 @@ + #include <glib-unix.h> + #include <errno.h> + ++/* taken from glibc unistd.h and fixes musl */ ++#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 ++ + /* Constants */ + #define MEMORY_PRESSURE_PATH "/proc/pressure/memory" + + |