Commit f54801ff authored by Martin Mares's avatar Martin Mares
Browse files

Moved all system-dependent #include's containing endianity conversion

functions to sysdep header endian.h.
parent 61340248
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
/*
 *	BIRD -- IP Addresses et Cetera for IPv4
 *
 *	(c) 1998 Martin Mares <mj@ucw.cz>
 *	(c) 1998--1999 Martin Mares <mj@ucw.cz>
 *
 *	Can be freely distributed and used under the terms of the GNU GPL.
 */
@@ -9,8 +9,7 @@
#ifndef _BIRD_IPV4_H_
#define _BIRD_IPV4_H_

#include <netinet/in.h>

#include "lib/endian.h"
#include "lib/bitops.h"

#ifdef DEBUGGING
+1 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@ main.c
timer.h
io.c
unix.h
endian.h

krt.c
krt.h

sysdep/unix/endian.h

0 → 100644
+17 −0
Original line number Diff line number Diff line
/*
 *	BIRD -- Endianity Conversion
 *
 *	(c) 1999 Martin Mares <mj@ucw.cz>
 *
 *	Can be freely distributed and used under the terms of the GNU GPL.
 */

#ifndef _BIRD_ENDIAN_H_
#define _BIRD_ENDIAN_H_

/* hton[sl] and ntoh[sl] are defined here */

#include <sys/types.h>
#include <netinet/in.h>

#endif