diff --git a/remote/modules/systemd/module.build b/remote/modules/systemd/module.build index 67e019af05ac0b66b277e74fcb7641f3a53d6bd6..e5522ccc1e2cd5564b4a16d6ba3d1d8fcf63bd0d 100644 --- a/remote/modules/systemd/module.build +++ b/remote/modules/systemd/module.build @@ -17,6 +17,7 @@ fetch_source () { perror "'src/$REQUIRED_VERSION/src/core/socket.c' does not exist." fi fi + # now check if the old fix needs to be applied # NOTE: only for systemd-204 if [ "x${REQUIRED_VERSION#systemd-}" = "x204" ]; then @@ -25,6 +26,8 @@ fetch_source () { # However, there were lots of changes after systemd 204, so we didn't update yet # See http://cgit.freedesktop.org/systemd/systemd/tree/NEWS for changes. patch -p0 src/systemd-*/src/core/main.c < systemd-openslx.patch || perror "Failed to apply openslx systemd patch." + + sed -i 's/#include <mtd\/mtd-user.h>/#include <mtd\/mtd-user.h> \n #include <stdint.h>/g' /root/tm-scripts_16/remote/modules/systemd/src/systemd-204/src/udev/mtd_probe/mtd_probe.h else # TODO use the above hint for setting environmenet through /etc/systemd/system.conf pinfo "Missing..."