]> git.ipfire.org Git - thirdparty/suricata.git/commit
misc: include queue.h before other headers 6079/head
authorJason Ish <jason.ish@oisf.net>
Thu, 22 Apr 2021 14:52:08 +0000 (08:52 -0600)
committerJason Ish <jason.ish@oisf.net>
Fri, 23 Apr 2021 16:43:48 +0000 (10:43 -0600)
commit01ec2ed674de3bff207ea73b112b1013e852e61d
tree2841742e6693eed05717a779597d47e15e52bd97
parent0856b2375806238888d20091314430722492dc2f
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.

(cherry picked from commit d4554ec6bb6e4e52fb2e36cf0412c981a4d1d2e9)
src/app-layer-expectation.c