]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: checks: don't include server.h
authorWilly Tarreau <w@1wt.eu>
Wed, 29 Nov 2017 09:52:29 +0000 (10:52 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 29 Nov 2017 09:54:05 +0000 (10:54 +0100)
server.h needs checks.h since it references the struct check, but depending
on the include order it will fail if check.h is included first due to this
one including server.h in turn while it doesn't need it.

include/types/checks.h

index b1fe7f337c777c8e701b9f33eb4c09f7fd08b07f..853a5bf8c5bbcea3abbc21da2c1f2de30fd1104f 100644 (file)
@@ -22,7 +22,6 @@
 #include <types/connection.h>
 #include <types/obj_type.h>
 #include <types/task.h>
-#include <types/server.h>
 
 /* enum used by check->result. Must remain in this order, as some code uses
  * result >= CHK_RES_PASSED to declare success.