]> git.puffer.fish Git - matthieu/frr.git/commit
lib: unconditionally include stddef.h
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 30 Jul 2013 13:36:26 +0000 (15:36 +0200)
committerDavid Lamparter <equinox@diac24.net>
Tue, 30 Jul 2013 16:14:13 +0000 (18:14 +0200)
commitc423d413e464913ee88c1ee700e2c4037e6bdb24
tree9cd9cf277703b89736a888a2bbb5455220789046
parentc51443f4aa6b7f0b0d6ad5409ad7d4b215092443
lib: unconditionally include stddef.h

I've used offsetof() in the previous commit to paper over the security
problems in ospf_api.c.  This blows the build on FreeBSD 7.0, missing
offsetof().  Let's add that to zebra's generally used includes.

stddef.h (and offsetof) is defined in C89 section 4.1.5 (and not
deprecated/removed by any later standard).  If this causes problems, the
bug report should go against the host OS/compiler...

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/zebra.h