From b08f27bfa2c4126f8de518739c6bce7e2cc7a9bd Mon Sep 17 00:00:00 2001
From: Alexandre Peres Arias <apa13@inf.ufpr.br>
Date: Thu, 20 Oct 2016 11:30:08 -0200
Subject: [PATCH] solve systemd vars type uint_32_t and others in mtd_probe.h

Signed-off-by: Alexandre Peres Arias <apa13@inf.ufpr.br>
---
 remote/modules/systemd/module.build | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/remote/modules/systemd/module.build b/remote/modules/systemd/module.build
index 67e019af..e5522ccc 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..."
-- 
GitLab