hannken
8d122c4997
Bring back two lines deleted by accident. From Kamil Rytarowski.
2019-06-22 14:40:33 +00:00
hannken
aa8b5122a1
Update tools/compat/configure for new path of "rpc/types.h".
...
Remove intermediate patch from rpcgen/Makefile.
Patch from Nick Hudson, errors from me.
2019-06-22 13:42:53 +00:00
kamil
80b70339c3
regen tools/compat
2019-06-19 23:35:55 +00:00
kamil
08fadea744
Add more SunOS types to tools/compat
...
Add fallback defintions of: uchar_t, ushort_t, uint_t, ulong_t.
Needed by the libctf code on Ubuntu 16.x.
2019-06-19 23:33:07 +00:00
kamil
1c06c1fef3
Add sys/uio.h & enum uio_seg, enum uio_rw to tools/compat
...
This is needed for bootstrapping the tools on Ubuntu 16.x.
2019-06-19 03:40:15 +00:00
thorpej
8319f966d5
Fix building libprop as a host tool library on platforms that don't have
...
the Matt Thomas rbtree:
- Include rb.c in libnbcompat, and provide a nbcompat sys/rbtree.h
header.
- Make sure libprop's source file include prop_object_impl.h before
anything else, and pull in nbtool_config.h from there.
Tested by simulating such a host system by renaming the host's
<sys/rbtree.h> out of the way (which reproduced the build failure)
and verifying that the host-tool installboot contained the rb_*
functions in its own .text segment.
2019-05-08 02:25:50 +00:00
dholland
4c5da2b349
Restore comment accidentally lost in merge.
2019-01-27 05:15:32 +00:00
pgoyette
d91f98a871
Merge the [pgoyette-compat] branch
2019-01-27 02:08:33 +00:00
palle
1e0d01e5bc
Add instructions for building NetBSD on modern Solaris 11 hosts
2018-09-09 19:17:21 +00:00
christos
14cc014e8a
deal with getsubopt and strncasecmp (needed by mdocml)
2018-08-30 12:05:34 +00:00
christos
b9f6c86d43
add strncasecmp
2018-08-16 12:03:36 +00:00
christos
0ffb3ff427
Add strcasecmp
2018-08-11 16:24:59 +00:00
maya
c44313b349
Revert my previous config test inclusion for u_longlong_t.
...
Fixing this differently by avoiding the need for the definition.
It also caused a problem in OS X, as I neglected to include a correct header
2018-06-13 04:17:43 +00:00
christos
4fabbeb31b
Move the typedefs before the header inclusions (except <features.h>) and
...
explain why.
2018-06-12 23:52:56 +00:00
maya
a3ebee93c8
Add configure check and fallback definition for u_longlong_t
...
Should help linux tools compilation of dtrace tools, and not
affect NetBSD.
From Chuck Zmudzinski in current-users, with light modification
by myself.
2018-06-11 18:48:24 +00:00
christos
bf7113376a
Create a new bsd.hostinit.mk file and put the build definitions for all host
...
programs there; make all Makefiles that use bsd.hostprog.mk include it.
Namely turn off MKREPRO and don't make lint, man pages, info files etc.
Remove the Makefile.inc files that contained these same settings, and
remove the settings from Makefile.host
2018-05-01 19:59:42 +00:00
christos
b2a8932dbe
PR/53238: Robert Elz: Disable MKREPRO in tools; the host compiler might
...
not support the necessary options. This is done thusly:
1. Set MKREPRO=no in Makefile.host. This handles all the Makefiles that
use it and don't include bsd.own.mk.
2. Create Makefile.inc and set MKREPRO=no in it. Change the Makefiles that
include bsd.own.mk, to include bsd.init.mk which includes Makefile.inc
first. This will also allow us to control other tools options from a
single location if we need to.
XXX: pullup-8
2018-05-01 00:04:34 +00:00
christos
e9e7b01807
undo previous; breaks the build. handle inside flex.
2018-03-11 18:32:43 +00:00
hans
ccac921152
Fix build of tools/lex on platforms lacking sys/cdefs.h by including
...
nbtool_config.h in tools/compat/regex.h. Tested on illumos.
2018-03-11 10:14:04 +00:00
sevan
d866c85be9
regen
2017-12-09 04:23:22 +00:00
sevan
bf692293ff
Add asnprintf() to the AC_CHECK_DECLS list.
...
Resolves conflict when cross compiling on Cygwin the provided implementation
does not get picked up.
Closes PR toolchain/52797
2017-12-09 04:22:53 +00:00
joerg
bf5991674e
Be consistent with our header.
2017-10-03 10:28:30 +00:00
christos
2dfeb58bd4
fix fpurge declaration
2017-10-03 01:43:03 +00:00
christos
cd84452b4c
regen
2017-10-02 22:21:31 +00:00
christos
692f2d0a6f
handle __fpurge being declared in <stdio_ext.h>
2017-10-02 22:19:45 +00:00
christos
b8eef4082a
regen
2017-01-07 21:31:07 +00:00
christos
4c2e361d5c
strmode on MacOS/X is in string.h
2017-01-07 21:30:42 +00:00
christos
6b3772867a
adjust for SSP (MacOS/X)
2017-01-07 21:29:30 +00:00
christos
cf6cbc80c5
need ctype.h
2017-01-07 02:55:19 +00:00
christos
621e8732cd
Check for declarations, not the existance of functions since some are
...
visible only when _NETBSD_SOURCE is defined. This avoids || defined(__NetBSD__)
hacks.
2017-01-07 02:52:04 +00:00
christos
0a3c283ede
regen
2016-10-19 21:55:26 +00:00
christos
883488e64e
try to fix missing decls
2016-10-19 21:54:20 +00:00
aymeric
a3838ae30d
add our libc's regex implementation to libnbcompat.
...
This way, nbsed picks it up and it unbreaks the build of xf86-video-intel-old's
man page under Linux and probably other future changes which rightfully expect
the (net)bsd behaviour.
Full release tested on ArchLinux and NetBSD 7.0_STABLE
2016-03-06 10:19:01 +00:00
martin
7493d9dc28
Remove regexp.h here temporarily
2016-03-01 10:11:07 +00:00
martin
7263822890
Revert to rev 1.77 for now on Aymeric's request
2016-03-01 10:09:00 +00:00
aymeric
978d3464f5
remove regsub.c from the list of files to build because it unbreaks the build
...
and this API is not yet endorsed. OK christos@
2016-03-01 06:48:55 +00:00
aymeric
90b3c9835b
add our libc's regex implementation to libnbcompat.
...
This way, nbsed picks it up and it unbreaks the build of xf86-video-intel-old's
man page under Linux and probably other future changes which rightfully expect
the (net)bsd behaviour.
2016-02-29 22:19:29 +00:00
christos
73f09d245f
Regen with autoconf 2.69.
2016-01-20 19:35:32 +00:00
christos
12a818e828
lex source moved.
2016-01-09 17:40:37 +00:00
christos
15404ac95d
use c comments
2015-10-09 14:42:40 +00:00
christos
2ecf333ea1
don't lie in the comment; this is not the re-entrant version
2015-10-08 20:33:58 +00:00
christos
51c8e06c4d
Switch to a version that does not suffer from reporting the wrong length
...
if the file contains NULs. From OpenBSD.
2015-10-08 20:20:45 +00:00
pooka
bc0dc0b26e
Add more compat defs for code compiled for !NetBSD targets.
...
At least GNU Hurd lacks MAXHOSTNAMELEN/MAXPATHLEN/PATH_MAX, so make sure
those have some arbitrary semi-sane values.
from Robert Millan in PR misc/50166, with some modifications from myself
2015-09-21 21:50:16 +00:00
christos
6fbf8f6644
undo previous; include is in ${.OBJDIR}
2015-09-17 14:25:43 +00:00
christos
2b8a0471fe
make this more robust by using .CURDIR to cd.
2015-09-17 02:22:47 +00:00
kamil
c4c10ad1a1
Add reallocarr(3) to tools/compat
...
This should unbreak libutil(3) creation on systems withot reallocarr(3).
2015-07-26 14:01:53 +00:00
christos
8283eb918f
add strtoi strtou (Kamil Rytarowski)
2015-01-18 18:09:10 +00:00
christos
17972cafc9
regen
2015-01-16 18:44:31 +00:00
christos
b89ab6e264
strto{i,u}
2015-01-16 18:44:06 +00:00
christos
1741549da9
add __UNVOLATILE
2014-12-24 16:18:46 +00:00