Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
lhanjian committed Nov 8, 2023
1 parent 9491619 commit 335c587
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions auto/sources
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down Expand Up @@ -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 \
Expand Down
3 changes: 3 additions & 0 deletions src/core/nginx.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
#include <ngx_core.h>
#include <nginx.h>

#if (T_NGX_HAVE_SCHED_GETAFFINITY)
#include <ngx_getaffinity.h>
#endif

static void ngx_show_version_info(void);
static ngx_int_t ngx_add_inherited_sockets(ngx_cycle_t *cycle);
Expand Down
2 changes: 1 addition & 1 deletion src/os/unix/ngx_getaffinity.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ typedef uint64_t ngx_cpuset_t;
#endif


#endif /* _NGX_SETAFFINITY_H_INCLUDED_ */
#endif /* _NGX_GETAFFINITY_H_INCLUDED_ */

0 comments on commit 335c587

Please sign in to comment.