Welcome! Log In Create A New Profile

Advanced

[PATCH] Core: reorder #ifdef in .h file to match order in .c file

Piotr Sikora
June 27, 2016 10:58PM
# HG changeset patch
# User Piotr Sikora <piotrsikora@google.com>
# Date 1467064811 25200
# Mon Jun 27 15:00:11 2016 -0700
# Node ID 11a53446bd90b8927cb93847c98672a8f056d182
# Parent d452cb27639f714bc43b7f3ede417e3e7f8efdd6
Core: reorder #ifdef in .h file to match order in .c file.

Signed-off-by: Piotr Sikora <piotrsikora@google.com>

diff -r d452cb27639f -r 11a53446bd90 src/os/unix/ngx_setaffinity.h
--- a/src/os/unix/ngx_setaffinity.h
+++ b/src/os/unix/ngx_setaffinity.h
@@ -11,16 +11,16 @@

#define NGX_HAVE_CPU_AFFINITY 1

-#if (NGX_HAVE_SCHED_SETAFFINITY)
-
-typedef cpu_set_t ngx_cpuset_t;
-
-#elif (NGX_HAVE_CPUSET_SETAFFINITY)
+#if (NGX_HAVE_CPUSET_SETAFFINITY)

#include <sys/cpuset.h>

typedef cpuset_t ngx_cpuset_t;

+#elif (NGX_HAVE_SCHED_SETAFFINITY)
+
+typedef cpu_set_t ngx_cpuset_t;
+
#endif

void ngx_setaffinity(ngx_cpuset_t *cpu_affinity, ngx_log_t *log);

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Core: reorder #ifdef in .h file to match order in .c file

Piotr Sikora 352 June 27, 2016 10:58PM

Re: [PATCH] Core: reorder #ifdef in .h file to match order in .c file

Maxim Dounin 192 July 08, 2016 10:14AM

Re: [PATCH] Core: reorder #ifdef in .h file to match order in .c file

Piotr Sikora 173 July 13, 2016 01:30PM

Re: [PATCH] Core: reorder #ifdef in .h file to match order in .c file

Maxim Dounin 180 July 13, 2016 02:02PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 240
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready