incron: fix build with gcc>=12

This commit is contained in:
Duncaen 2022-10-06 19:20:43 +02:00
parent e71040342e
commit b8b7cc7bcd
No known key found for this signature in database
GPG Key ID: 335C1D17EC3D6E35
1 changed files with 2 additions and 0 deletions

View File

@ -16,6 +16,8 @@ case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends="argp-standalone";;
esac
export CXXFLAGS="--std=c++14"
do_build() {
sed -i 's,sbin,bin,g' Makefile
sed -i '1,1i#include <unistd.h>' inotify-cxx.cpp icd-main.cpp