~aleteoryx/muditaos

fa22300369e3f21c6e2ea3fce2f4bf5452a71d4f — Wiktor S. Ovalle Correa 5 years ago 0f0192a
[EGD-5378] Fix missing condition

Some strange mistake happened during a rebase.
1 files changed, 2 insertions(+), 1 deletions(-)

M board/linux/libiosyscalls/src/syscalls_real.hpp
M board/linux/libiosyscalls/src/syscalls_real.hpp => board/linux/libiosyscalls/src/syscalls_real.hpp +2 -1
@@ 8,7 8,8 @@
#define __REAL_DLSYM(fun)                                                                                              \
    do {                                                                                                               \
        real::fun = reinterpret_cast<decltype(real::fun)>(dlsym(RTLD_NEXT, #fun));                                     \
        fprintf(stderr, "Missing libc syscall: %s()\n", #fun);                                                         \
        if (!real::fun)                                                                                                \
            fprintf(stderr, "Missing libc syscall: %s()\n", #fun);                                                     \
    } while (0);

#include <dlfcn.h> // for dlsym()