diff --git a/auto/sources b/auto/sources index 7cef849cbb..9e9361bc0d 100644 --- a/auto/sources +++ b/auto/sources @@ -152,6 +152,7 @@ UNIX_DEPS="$CORE_DEPS $EVENT_DEPS \ src/os/unix/ngx_shmem.h \ src/os/unix/ngx_process.h \ src/os/unix/ngx_setaffinity.h \ + src/os/unix/ngx_getaffinity.h \ src/os/unix/ngx_setproctitle.h \ src/os/unix/ngx_atomic.h \ src/os/unix/ngx_gcc_atomic_x86.h \ @@ -192,6 +193,7 @@ UNIX_SRCS="$CORE_SRCS $EVENT_SRCS \ src/os/unix/ngx_process.c \ src/os/unix/ngx_daemon.c \ src/os/unix/ngx_setaffinity.c \ + src/os/unix/ngx_getaffinity.c \ src/os/unix/ngx_setproctitle.c \ src/os/unix/ngx_posix_init.c \ src/os/unix/ngx_user.c \ diff --git a/src/core/nginx.c b/src/core/nginx.c index 4d193f33a5..4c142be31d 100755 --- a/src/core/nginx.c +++ b/src/core/nginx.c @@ -9,6 +9,9 @@ #include #include +#if (T_NGX_HAVE_SCHED_GETAFFINITY) +#include +#endif static void ngx_show_version_info(void); static ngx_int_t ngx_add_inherited_sockets(ngx_cycle_t *cycle); diff --git a/src/os/unix/ngx_getaffinity.h b/src/os/unix/ngx_getaffinity.h index 18b0417970..e34f1708b0 100644 --- a/src/os/unix/ngx_getaffinity.h +++ b/src/os/unix/ngx_getaffinity.h @@ -22,4 +22,4 @@ typedef uint64_t ngx_cpuset_t; #endif -#endif /* _NGX_SETAFFINITY_H_INCLUDED_ */ +#endif /* _NGX_GETAFFINITY_H_INCLUDED_ */