mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 23:29:22 +02:00
fix freebsd build
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@192 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
e6632627d3
commit
3542143e42
@ -59,8 +59,23 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <elf.h>
|
#include <elf.h>
|
||||||
|
#ifdef __FreeBSD__
|
||||||
|
/**
|
||||||
|
* This seems to work on FreeBSD 5.3, should
|
||||||
|
* work on all newer versions as well. I have
|
||||||
|
* no idea if it will work on versions < 5.3
|
||||||
|
*
|
||||||
|
* Joe Estock (guru) <jestock at nutextonline.com>
|
||||||
|
*/
|
||||||
|
#include <sys/endian.h>
|
||||||
|
#define bswap_64 __bswap64
|
||||||
|
#define bswap_32 __bswap32
|
||||||
|
#define bswap_16 __bswap16
|
||||||
|
#else
|
||||||
#include <endian.h>
|
#include <endian.h>
|
||||||
#include <byteswap.h>
|
#include <byteswap.h>
|
||||||
|
#endif /* defined(__FreeBSD__) */
|
||||||
|
|
||||||
|
|
||||||
#ifndef TRUE
|
#ifndef TRUE
|
||||||
#define TRUE 1
|
#define TRUE 1
|
||||||
|
Loading…
Reference in New Issue
Block a user