aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2020-03-06 21:47:45 +0100
committerHelmut Grohne <helmut@subdivi.de>2020-03-06 21:47:45 +0100
commitc8a18baa42dc08ad7f9324999e7eae3ba59c46e5 (patch)
treef92f7b6f8fd1cbedb23fdc559ad2908d1780add2
parent4f681bce9496308316c457597cf28a825fca33f8 (diff)
fix gpm FTBFS with gcc-10 #953266
-rwxr-xr-xbootstrap.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
index 8025589..ca988f5 100755
--- a/bootstrap.sh
+++ b/bootstrap.sh
@@ -1258,6 +1258,10 @@ patch_gpm() {
#include <stdlib.h>
EOF
fi
+ if test "$GCC_VER" -ge 10; then
+ echo "fix FTBFS with gcc-10 #953266"
+ drop_privs sed -i -e '/last_selection_time/s/^/extern /' src/headers/daemon.h
+ fi
}
add_automatic grep