File ccat.diff of Package ethercat
diff --git a/devices/ccat/netdev.c b/devices/ccat/netdev.c
index b122b790..8092a782 100644
--- a/devices/ccat/netdev.c
+++ b/devices/ccat/netdev.c
@@ -31,7 +31,7 @@
#define request_dma(X, Y) ((int)(-EINVAL))
#endif
-#ifdef CONFIG_SUSE_KERNEL
+#if defined(CONFIG_SUSE_KERNEL) && LINUX_VERSION_CODE >= KERNEL_VERSION(5, 0, 0)
#include <linux/suse_version.h>
#else
# ifndef SUSE_VERSION
diff --git a/fake_lib/Makefile.am b/fake_lib/Makefile.am
index 18cbe7de..1ea38cc8 100644
--- a/fake_lib/Makefile.am
+++ b/fake_lib/Makefile.am
@@ -31,6 +31,7 @@ noinst_HEADERS = \
fakeethercat.h
libfakeethercat_la_CXXFLAGS = \
+ -std=c++11 \
-fno-strict-aliasing \
-Wall \
-I$(top_srcdir)/include \
diff --git a/Makefile.am b/Makefile.am
index a70206a6..7f14743c 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -99,7 +99,7 @@ mrproper: clean cleandoc
stamp-h1
generated_table.md: devices/create_driver_table.py
- python3 $< --markdown $@ $(abs_srcdir)/devices
+ touch $@
device_drivers.md: $(srcdir)/devices/device_drivers_template.md generated_table.md
cat $^ > $@