Commit Graph

341 Commits

Author SHA1 Message Date
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
christos acfd168486 remove unused constants (Kamil Rytarowski) 2014-12-22 18:08:39 +00:00
joerg 706f66c9f4 If the internals are not explicitly requested, use #include_next to pick
up the system version. <locale> from libc++ requires this and is used by
src/tools/elftosb2.
2014-11-12 15:08:52 +00:00
christos 1ffd7c80d4 put O_CLOEXEC definition here. 2014-09-24 13:17:35 +00:00
christos 17d648a1fc Fix problem reading the last line when it did not contain a delimiter
(Hubert Garavel)
2014-09-16 17:23:50 +00:00
martin 5621a8b94e Avoid overflowing the "year" value by making the field uint64_t. Adapt
arguments and local variables accordingly.
This now fixes PR 49144 for real.
2014-09-07 11:50:23 +00:00
apb 20e1ccfe27 Copy definitions of __type_min(t), __type_max(t), and some related macros,
from <sys/cdefs.h>, for use when building tools.
2014-09-01 11:20:06 +00:00
martin d67a8a7def Add a slightly stripped down version of sys/dev/clock/clock_subr.h to make
this code available for tools.
2014-09-01 07:48:16 +00:00
christos 453a5cc5a8 Deal with errc/warnc 2014-06-06 01:40:40 +00:00