summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/mono/PKGBUILD9
1 files changed, 5 insertions, 4 deletions
diff --git a/extra/mono/PKGBUILD b/extra/mono/PKGBUILD
index bccd03b7..7cf3826b 100644
--- a/extra/mono/PKGBUILD
+++ b/extra/mono/PKGBUILD
@@ -5,10 +5,11 @@ if [ "$CARCH" = 'i486' ]; then
sed '
/^}$/ i \
sed -i '"'"' \
- /#define BROKEN_64BIT_ATOMICS_INTRINSIC 1/ i \\\
- #endif \\\
- #if true \
- '"'"' mono/utils/atomic.h
+ /#define BROKEN_64BIT_ATOMICS_INTRINSIC 1/ { \
+ N \
+ s/\\(.*\\)\\n\\s*#endif/#endif\\n\\1/ \
+ } \
+ '"'"' mono/utils/atomic.h
'
)"
fi