Commit Graph

7 Commits

Author SHA1 Message Date
jmc b2f782612f Completely rework how tools/compat is done. Purge all uses/references to
_NETBSD_SOURCE as this makes cross building from older/newer versions of
NetBSD harder, not easier (and also makes the resulting tools 'different')

Wrap all required code with the inclusion of nbtool_config.h, attempt to
only use POSIX code in all places (or when reasonable test w. configure and
provide definitions: ala u_int, etc).

Reviewed by lukem. Tested on FreeBSD 4.9, Redhat Linux ES3, NetBSD 1.6.2 x86
NetBSD current (x86 and amd64) and Solaris 9.

Fixes PR's: PR#17762 PR#25944
2004-06-20 22:20:14 +00:00
lukem abcf838dab only use __RCSID() if it is #defined 2003-07-17 08:33:03 +00:00
agc a8d6388e6f Add NetBSD RCS Ids. 2003-06-23 13:05:47 +00:00
matt fcd0fb118f Make gcc 2.96 (and maybe earlier) happier. Include <stdlib.h>,<string.>,
etc. as appropriate to get exit,srncmp,abs,abort,etc.
Add -I${.CURDIR} to a few Makefiles
2000-07-03 02:51:12 +00:00
perry 6abf6a014c <stdlib.h> -> <unistd.h> to fix compiler warning 1998-02-03 03:53:39 +00:00
lukem 979f7a0097 fix up .Nm usage, getopt returns -1 not EOF 1997-10-19 05:19:15 +00:00
phil 584c2298f0 Import a simple message system with 'compiled' messages. Used by
the net system install program.
1997-09-26 21:16:38 +00:00