aboutsummaryrefslogtreecommitdiffstats
path: root/community/mtd-utils/0001_mtd-2.1.0_fix_tests.patch
blob: 76d9dfd9a75e4ea2c81b8b57a36dc41215960f3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- mtd-utils-2.1.0/tests/unittests/test_lib.h.orig	2019-04-15 08:01:29.688043955 +0200
+++ mtd-utils-2.1.0/tests/unittests/test_lib.h		2019-04-15 08:01:34.884030090 +0200
@@ -1,3 +1,4 @@
+#include <asm/ioctl.h>
 #include <stdarg.h>
 #include <setjmp.h>
 #include <stddef.h>
--- mtd-utils-2.1.0/tests/unittests/libmtd_test.c.orig	2019-04-15 08:02:47.535836214 +0200
+++ mtd-utils-2.1.0/tests/unittests/libmtd_test.c	2019-04-15 08:07:22.583102241 +0200
@@ -1,3 +1,4 @@
+#include <fcntl.h>
 #include <stdarg.h>
 #include <setjmp.h>
 #include <stddef.h>
--- mtd-utils-2.1.0/Makefile.in.orig	2019-04-15 09:13:39.149755481 +0200
+++ mtd-utils-2.1.0/Makefile.in		2019-04-15 09:14:13.689663316 +0200
@@ -1710,7 +1710,7 @@
 @UNIT_TESTS_TRUE@mtdlib_test_SOURCES = tests/unittests/libmtd_test.c lib/libmtd.c lib/libmtd_legacy.c
 @UNIT_TESTS_TRUE@mtdlib_test_LDADD = $(CMOCKA_LIBS)
 @UNIT_TESTS_TRUE@mtdlib_test_LDFLAGS = -Wl,--wrap=open -Wl,--wrap=close -Wl,--wrap=ioctl -Wl,--wrap=read -Wl,--wrap=lseek -Wl,--wrap=write
-@UNIT_TESTS_TRUE@mtdlib_test_CPPFLAGS = -O0 --std=gnu99 $(CMOCKA_CFLAGS) -I$(top_srcdir)/lib/ -I$(top_srcdir)/include -DSYSFS_ROOT='"$(top_srcdir)/tests/unittests/sysfs_mock"'
+@UNIT_TESTS_TRUE@mtdlib_test_CPPFLAGS = -O0 -D_GNU_SOURCE --std=gnu99 $(CMOCKA_CFLAGS) -I$(top_srcdir)/lib/ -I$(top_srcdir)/include -DSYSFS_ROOT='"$(top_srcdir)/tests/unittests/sysfs_mock"'
 @UNIT_TESTS_TRUE@TEST_BINS = \
 @UNIT_TESTS_TRUE@	ubilib_test \
 @UNIT_TESTS_TRUE@	mtdlib_test