• Zhang Ning's avatar
    Android NDK: __errno is already defined as a function · f4fa53cf
    Zhang Ning authored
    criu/log.c:356:16: error: called object type 'int' is not a function or function pointer
            int __errno = errno;
                          ^~~~~
    /root/android-ndk/toolchains/llvm/prebuilt/linux-x86_64//sysroot/usr/include/errno.h:43:24: note: expanded from macro 'errno'
                    ~~~~~~~^
    criu/log.c:391:2: error: called object type 'int' is not a function or function pointer
            errno =  __errno;
            ^~~~~
    /root/android-ndk/toolchains/llvm/prebuilt/linux-x86_64//sysroot/usr/include/errno.h:43:24: note: expanded from macro 'errno'
    
    in Android NDK's errno.h:
    
    42: int* __errno(void) __attribute_const__;
    43: #define errno (*__errno())
    
    so rename __errno to _errno to pass build
    
    Cc: Chen Hu <hu1.chen@intel.com>
    Signed-off-by: 's avatarZhang Ning <ning.a.zhang@intel.com>
    Reviewed-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
    Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
    Signed-off-by: 's avatarAndrei Vagin <avagin@gmail.com>
    f4fa53cf
Name
Last commit
Last update
..
compel Loading commit data...
exhaustive Loading commit data...
inhfd Loading commit data...
jenkins Loading commit data...
others Loading commit data...
zdtm Loading commit data...
.gitignore Loading commit data...
Makefile Loading commit data...
abrt.sh Loading commit data...
check_actions.py Loading commit data...
crit-recode.py Loading commit data...
empty-netns-prep.sh Loading commit data...
groups.desc Loading commit data...
inhfd.desc Loading commit data...
pycriu Loading commit data...
show_action.sh Loading commit data...
umount2.c Loading commit data...
zdtm.desc Loading commit data...
zdtm.py Loading commit data...
zdtm_ct.c Loading commit data...
zdtm_mount_cgroups Loading commit data...
zdtm_umount_cgroups Loading commit data...