]> git.ipfire.org Git - thirdparty/suricata.git/commit
misc: include queue.h before other headers 6078/head
authorJason Ish <jason.ish@oisf.net>
Thu, 22 Apr 2021 14:52:08 +0000 (08:52 -0600)
committerVictor Julien <victor@inliniac.net>
Thu, 22 Apr 2021 18:59:11 +0000 (20:59 +0200)
commitd4554ec6bb6e4e52fb2e36cf0412c981a4d1d2e9
tree75a9ac85aa6698b8f1125978f27d6c3cae34d977
parentc7f44447c9dda294755348770956148a36633f0c
misc: include queue.h before other headers

At least on FreeBSD, some other include is including "sys/queue.h"
which results in FreeBSDs /usr/include/sys/queue.h being picked
up and setting __SYS_QUEUE_H__ so our queue.h is not picked up.

But the FreeBSD queue.h does not have the CIRCLEQ definitions. To
fix just include our queue.h first, which also sets __SYS_QUEUE_H__
preventing the system one from being picked up.
src/app-layer-expectation.c