From: Jan Kiszka <[email protected]> If large files are enabled, fopen will translate to fopen64.
Signed-off-by: Jan Kiszka <[email protected]> --- tools/tests/Makefile.am | 4 ++-- tools/tests/test_environment.c | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/tools/tests/Makefile.am b/tools/tests/Makefile.am index 548d085..c99ba60 100644 --- a/tools/tests/Makefile.am +++ b/tools/tests/Makefile.am @@ -42,8 +42,8 @@ test_environment_LDADD = \ -lcmocka libebgenv-test_environment.a: $(top_builddir)/libebgenv.a - $(AM_V_GEN) $(OBJCOPY) -W oldenvs -W configparts -W fopen -W fclose \ - -W fread -W fwrite -W feof $< $@ + $(AM_V_GEN) $(OBJCOPY) -W oldenvs -W configparts -W fopen -W fopen64 \ + -W fclose -W fread -W fwrite -W feof $< $@ CLEANFILES += libebgenv-test_environment.a diff --git a/tools/tests/test_environment.c b/tools/tests/test_environment.c index 423eed0..caecd72 100644 --- a/tools/tests/test_environment.c +++ b/tools/tests/test_environment.c @@ -40,6 +40,11 @@ FILE *fopen(const char *filename, const char *mode) return NULL; } +FILE *fopen64(const char *filename, const char *mode) +{ + return fopen(filename, mode); +} + int fclose(FILE *handle) { return mock_type(int); -- 2.12.3 -- You received this message because you are subscribed to the Google Groups "EFI Boot Guard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/efibootguard-dev/a31a7abe4f5c7114e2401bdc039f85bac82b00f5.1506284412.git.jan.kiszka%40siemens.com. For more options, visit https://groups.google.com/d/optout.
