*: make sure zebra.h is always included first

zebra.h pulls in config.h, which results in fiddling with things like
__FILE_OFFSET_BITS. It must always be included first, in order to set
flags that influence the compiler via <features.h>.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 821df2cf18e5978cc7ab532a8695444380d08270)
This commit is contained in:
David Lamparter 2015-09-15 01:53:09 -07:00 committed by Donald Sharp
parent 195dd232eb
commit 7a2fbbf0ee
20 changed files with 32 additions and 23 deletions

View file

@ -7,6 +7,7 @@
/* */
/*********************************************************************/
#include <zebra.h>
#include <sys/types.h>
#include <sys/times.h>

View file

@ -1,3 +1,4 @@
#include <zebra.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -1,11 +1,11 @@
#include <zebra.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "random.c"
#include <zebra.h>
#include "thread.h"
#include "vty.h"
#include "log.h"

View file

@ -1,3 +1,5 @@
#include <zebra.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

View file

@ -30,10 +30,6 @@
# define _NO_PROTO
#endif
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <zebra.h>
#if !defined __STDC__ || !__STDC__

View file

@ -20,10 +20,6 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
USA. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <zebra.h>
#include "getopt.h"

View file

@ -20,8 +20,8 @@
* 02111-1307, USA.
*/
#include <stddef.h>
#include <zebra.h>
#include <stddef.h>
#include "stream.h"
#include "memory.h"

View file

@ -21,7 +21,7 @@
* 02111-1307, USA.
*/
#include <lib/zebra.h>
#include <zebra.h>
#include "thread.h"
#include "memory.h"
#include "workqueue.h"

View file

@ -20,10 +20,10 @@
$QuaggaId: $Format:%an, %ai, %h$ $
*/
#include <sys/ioctl.h>
#include <zebra.h>
#include <sys/ioctl.h>
#include "command.h"
#include "if.h"
#include "prefix.h"

View file

@ -20,6 +20,8 @@
$QuaggaId: $Format:%an, %ai, %h$ $
*/
#include <zebra.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <string.h>

View file

@ -20,6 +20,8 @@
$QuaggaId: $Format:%an, %ai, %h$ $
*/
#include <zebra.h>
#include <string.h>
#include <netinet/in.h>
#include <arpa/inet.h>

View file

@ -20,9 +20,10 @@
$QuaggaId: $Format:%an, %ai, %h$ $
*/
#include <zebra.h>
#include <signal.h>
#include <zebra.h>
#include "sigevent.h"
#include "memory.h"
#include "log.h"

View file

@ -20,6 +20,7 @@
$QuaggaId: $Format:%an, %ai, %h$ $
*/
#include <zebra.h>
#include "pim_mroute.h"
#include <sys/types.h>
@ -31,7 +32,6 @@
#include <netdb.h>
#include <errno.h>
#include <zebra.h>
#include "log.h"
#include "privs.h"

View file

@ -20,12 +20,12 @@
$QuaggaId: $Format:%an, %ai, %h$ $
*/
#include <zebra.h>
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <zebra.h>
#include "log.h"
#include "pim_str.h"

View file

@ -20,11 +20,12 @@
$QuaggaId: $Format:%an, %ai, %h$ $
*/
#include <zebra.h>
#include <string.h>
#include <sys/time.h>
#include <time.h>
#include <zebra.h>
#include "log.h"
#include "thread.h"

View file

@ -20,6 +20,8 @@
$QuaggaId: $Format:%an, %ai, %h$ $
*/
#include <zebra.h>
#include "pim_version.h"
const char * const PIMD_VERSION = PIMD_VERSION_STR;

View file

@ -23,6 +23,8 @@
* 02111-1307, USA.
*/
#include <zebra.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>

View file

@ -20,6 +20,8 @@
* 02111-1307, USA.
*/
#include <zebra.h>
#include "common-cli.h"
DUMMY_DEFUN(cmd0, "arg ipv4 A.B.C.D");

View file

@ -23,11 +23,11 @@
* 02111-1307, USA.
*/
#include <zebra.h>
#include <stdio.h>
#include <unistd.h>
#include <zebra.h>
#include "memory.h"
#include "pqueue.h"
#include "prng.h"

View file

@ -22,11 +22,12 @@
* Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
#include <stdio.h>
#include <unistd.h>
#include <zebra.h>
#include <stdio.h>
#include <unistd.h>
#include "thread.h"
#include "pqueue.h"
#include "prng.h"