Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import unistd.h before calling syscall. #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 25, 2021

  1. Import unistd.h before calling syscall.

    The Linux man page for syscall(2) documents it as:
    
        #define _GNU_SOURCE         /* See feature_test_macros(7) */
        #include <unistd.h>
        #include <sys/syscall.h>   /* For SYS_xxx definitions */
    
        long syscall(long number, ...);
    
    Therefore unistd.h is required in addition to the already imported
    sys/syscall.h and the already defined _GNU_SOURCE.
    eatnumber1 committed Jun 25, 2021
    Configuration menu
    Copy the full SHA
    a329a54 View commit details
    Browse the repository at this point in the history