aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include
Commit message (Collapse)AuthorAgeFilesLines
* build: fix kernel 5.4 on macosKevin Darbyshire-Bryant2020-03-141-0/+24
| | | | | | | | | | As part of the kernel build process there are utilities built to run on the host system that expect linux kernel headers to be available. Unfortunately macos/darwin doesn't have these headers. vdso2c requires types.h so provide a minimal stub to satisfy it. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* tools: Update endian definitions for Mac OSXKevin Darbyshire-Bryant2018-12-191-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | - it appears (at least from OS X verison 10.10, Yosemite) that the big and little endian defintions have changed. the older #include <sys/_endian.h> #include <architecture/byte_order.h> reference yielded the following warning: #define __bswap_16(x) NXSwapShort(x) ^ /usr/include/architecture/byte_order.h:45:1: note: 'NXSwapShort' has been explicitly marked deprecated here For the new OS X editions, it seems that we need to refer to: #include <netinet/in.h> #include <libkern/OSByteOrder.h> and respectively use 'OSSwapInt16', 'OSSwapInt32', & 'OSSwapInt64', in place of 'NXSwapShort', 'NXSwapLong' & 'NXSwapLongLong'. Signed-off-by: Kevin Darbyshire-Bryant <ldir@darbyshire-bryant.me.uk>
* tools: host/include/getline.h: RemoveRosen Penev2017-04-261-72/+0
| | | | | | Seems to be useful only for old and unsupported operating systems. Removed and adjusted the mtd-utils Makefile. Signed-off-by: Rosen Penev <rosenp@gmail.com>
* tools: host/include/getline.h: fix FreeBSD 8.0+ supportImre Kaloz2015-05-081-1/+5
| | | | | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> Signed-off-by: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 45628
* tools: include endian.h from byteswap.h to ensure that bswap_* is availableFelix Fietkau2013-07-061-0/+2
| | | | | | Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 37183
* build: BSD compile fixesFelix Fietkau2013-03-072-1/+6
| | | | | | | | | | | | | | | | following patch allows to build images for Qemu ARM on OpenBSD 5.2 amd64 and FreeBSD 9.1 amd64. Mostly small pieces of code changes to get things right on the specific platform. Updated the README to describe better, which tools on the host are required. Added some kind of prepare scripts to install needed tools on BSD via packages. Signed-off-by: Waldemar Brodkorb <mail@waldemar-brodkorb.de> SVN-Revision: 35900
* kernel: fix portability issues on the x86 specific relocs host tool, fixes ↵Felix Fietkau2012-07-201-0/+3007
| | | | | | build on mac os x SVN-Revision: 32783
* host/include/getline.h - Mac OS X 10.7 (Lion) fixLars-Peter Clausen2011-08-051-1/+1
| | | | | | | | | | | | | | | | Apple has finally updated their version of Libc, and it now includes getline(). \o/ The following patch fixes OpenWRT getline.h to not redefine it for 10.7. The one caveat is, the includes (at least stdio.h) are needed before the #ifdef so that __DARWIN_C_LEVEL could be properly defined (it is not a compiler built-in define like __linux__ or __APPLE__). This one fixes the host/include/getline.h. The next patch will mend the mkimage package. Signed-off-by: Joe Roback <openwrt-devel at roback.cc> SVN-Revision: 27916
* add a portable version of sys/sysmacros.h and and let the kernel use the ↵Felix Fietkau2011-07-021-0/+56
| | | | | | host include dir, fixes x86 builds on non-gnu systems SVN-Revision: 27346
* more cygwin related build fixesFlorian Fainelli2009-04-143-3/+9
| | | | SVN-Revision: 15227
* fix sstrip linux compileFelix Fietkau2006-10-141-0/+1
| | | | SVN-Revision: 5104
* finally move buildroot-ng to trunkFelix Fietkau2016-03-203-0/+99