• Chris Zankel's avatar
    xtensa: allow multi-inclusion for uapi/unistd.h · 2f72d4f6
    Chris Zankel authored
    Xtensa implements a method that allows to generate a arbitrary output
    for each system call by defining the __SYSCALL(number, function, num_args).
    This usually requires to include uapi/unistd.h twice. Instead of removing
    the guard agains multiple inclusion entirely, allow to include unistd.h again
    only if __SYSCALL is defined. Note that __SYSCALL gets always undefined at
    the end of the file.
    Signed-off-by: default avatarChris Zankel <chris@zankel.net>
    2f72d4f6
syscall.c 1.41 KB