mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 09:41:54 +00:00
Moved all system-dependent #include's containing endianity conversion
functions to sysdep header endian.h.
This commit is contained in:
parent
6134024815
commit
f54801ffed
@ -1,7 +1,7 @@
|
|||||||
/*
|
/*
|
||||||
* BIRD -- IP Addresses et Cetera for IPv4
|
* 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.
|
* Can be freely distributed and used under the terms of the GNU GPL.
|
||||||
*/
|
*/
|
||||||
@ -9,8 +9,7 @@
|
|||||||
#ifndef _BIRD_IPV4_H_
|
#ifndef _BIRD_IPV4_H_
|
||||||
#define _BIRD_IPV4_H_
|
#define _BIRD_IPV4_H_
|
||||||
|
|
||||||
#include <netinet/in.h>
|
#include "lib/endian.h"
|
||||||
|
|
||||||
#include "lib/bitops.h"
|
#include "lib/bitops.h"
|
||||||
|
|
||||||
#ifdef DEBUGGING
|
#ifdef DEBUGGING
|
||||||
|
@ -3,6 +3,7 @@ main.c
|
|||||||
timer.h
|
timer.h
|
||||||
io.c
|
io.c
|
||||||
unix.h
|
unix.h
|
||||||
|
endian.h
|
||||||
|
|
||||||
krt.c
|
krt.c
|
||||||
krt.h
|
krt.h
|
||||||
|
17
sysdep/unix/endian.h
Normal file
17
sysdep/unix/endian.h
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* 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
|
Loading…
Reference in New Issue
Block a user