]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: cpuset: move include guard at the very beginning
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 27 Apr 2021 08:39:39 +0000 (10:39 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 27 Apr 2021 08:39:39 +0000 (10:39 +0200)
The include guard in cpuset-t.h were misplaced and should be the first
directive of the file.

No need to backport.

include/haproxy/cpuset-t.h

index f1c532d2e2f08b61a0a3c8caf059d0db0dc89631..6bc29af413793564eb801fd3ba65320d5edb1680 100644 (file)
@@ -1,3 +1,6 @@
+#ifndef _HAPROXY_CPUSET_T_H
+#define _HAPROXY_CPUSET_T_H
+
 #define _GNU_SOURCE
 #include <sched.h>
 
@@ -9,9 +12,6 @@
 #endif
 #endif
 
-#ifndef _HAPROXY_CPUSET_T_H
-#define _HAPROXY_CPUSET_T_H
-
 #if defined(__linux__) || defined(__DragonFly__)
 
 # define CPUSET_REPR cpu_set_t