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

Piotr Sikora piotrsikora at google.com
Tue Jun 28 02:55:18 UTC 2016


# HG changeset patch
# User Piotr Sikora <piotrsikora at 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 at 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);



More information about the nginx-devel mailing list