rillig
0c496b4733
pkgtools/libnbcompat: fix regular expression literals in AWK program
...
gawk: nbcompat.awk:5: warning:
regexp escape sequence `\#' is not a known regexp operator
2019-09-13 20:23:50 +00:00
sevan
65b974ebf4
Use the correct prototype - thanks <gutteridge>
2019-07-09 09:43:32 +00:00
sevan
2b7b6e7854
Include strnlen(3) - Needed on Tiger and more recent Intel only Darwin releases.
2019-07-08 20:34:54 +00:00
christos
c8e32a0c28
PR/52982: Eitan Adler: fix incorrect bounds computation.
...
XXX: really we need to sync with the libc glob.c
2019-02-20 14:44:24 +00:00
dholland
b315a9c4a1
termcap.h also requires the change from PR 33037.
2019-01-12 07:55:28 +00:00
triaxx
38fecd811a
libnbcompat: fix PR pkg/33037
...
Thanks Stuart and sorry for the long time.
2018-12-31 11:25:08 +00:00
maya
6c25dec844
Remove clauses 3,4 from TNF-only copyright blocks.
...
This is based on the decision The NetBSD Foundation made in 2008 to
do so, which was already applied to src.
This change has been applied to code which is likely not in other
repositories.
ok board@, reviewed by riastradh@
2018-08-22 20:48:36 +00:00
wiz
2dcfcfb7b3
*: remove references to obsolete DragonFly/i386
2018-04-30 10:41:35 +00:00
joerg
da96390afb
Avoid duplicated RCS IDs forcing permanent rebuilds.
2015-12-25 20:12:46 +00:00
joerg
43e7c0052f
Always redefine TAILQ_FOREACH_REVERSE. Mac OS X Tiger has a version with
...
the third and fourth argument swapped.
2015-12-13 21:56:27 +00:00
ryoon
aa2fa66acd
Fix build under the environment that has no statvfs.
...
Fix my old mistake, logic inversion.
2015-12-11 23:28:10 +00:00
joerg
619f051608
Make __nbcompat_unvis13 static, it is not part of the interface
...
contract. Reorder to avoid using it before it is defined. ANSIfy.
2015-09-03 09:05:54 +00:00
kamil
21bf314b92
Add AC_GNU_SOURCE to configure.ac and regenerate autotools
...
This fixes build on recent ArchLinux with GCC 5.2 and GLibc 2.22.
Approved by <wiz>
2015-09-01 23:17:51 +00:00
joerg
bde919dca2
As the seemingly untested -Werror changes break the bootstrap at least
...
on Linux, update libnbcompat to 20150615:
- Assume a C89 environment and malloc, vprintf, memcpy, memset, memmove
to be present and working.
- Use full prototypes for isblank, snprintf, asprintf and strdup.
This avoids GCC failing to do conflicts with the builtins.
2015-06-08 00:44:46 +00:00
joerg
3015f4863b
Reapply 1.37, but split the dependencies correctly into the header and
...
library dependency.
2015-05-02 12:52:59 +00:00
ryoon
0bd6a3c318
Fix build failure on many platforms.
...
The previous commit is obviously wrong because OBJS depends on LIB
and LIB is generated from OBJS.
And I can build this package with MAKE_JOBS=32.
2015-05-02 11:59:05 +00:00
joerg
fb6b8befd6
Ensure that nbconfig.h is created before all object files, avoiding
...
mysterious failures for parallel builds.
2015-05-01 12:18:09 +00:00
tnn
871b1a2550
libnbcompat-20150419: provide getline(3)
2015-04-19 12:24:21 +00:00
tnn
72ae24afa9
regen
2015-04-19 12:23:25 +00:00
tnn
84fa97de4f
- provide getline(3) to let cwrappers build on netbsd-5
...
- also provide getdelim(3) for the getline(3) implementation
2015-04-19 12:22:14 +00:00
jperkin
5f58e288b1
Update to libnbcompat-20150414. Changes:
...
- Provide a setenv() prototype, required by Solaris 9 for the cwrappers
build.
2015-04-14 09:23:48 +00:00
rodent
1566321c2f
Documenting history.
2015-04-05 03:11:00 +00:00
riastradh
3f0098d79f
Same netbsd*-eabi* tweak for libnbcompat's even older config.sub.
2015-02-14 07:25:54 +00:00
jperkin
b63f9ab414
libnbcompat-20140725:
...
Newer Linux systems have moved libutil.h to bsd/libutil.h, add the
necessary checks for that location. Fixes at least Ubuntu 12.04.
2014-07-25 13:26:24 +00:00
cheusov
ce5b55794f
s/HAVE_DECL_ASPRINTF/HAVE_DECL_VASPRINTF/. According to configure.ac
...
presense of vasprintf(3) is checked. This partially fixes bootstrap failure
on AltLinux.
2014-06-07 19:17:42 +00:00
ryoon
38fc261e34
Add SCO OpenServer 5.0.7/3.2 support
2014-03-14 22:08:17 +00:00
ryoon
3a1b61def2
Update to 20130908
...
* Fix build on FreeMiNT.
* Tested on some platforms, See files/README.
2013-09-08 16:24:43 +00:00
ryoon
361c4e8675
Fix typos in comment from FreeMiNT's db1 patches.
2013-09-08 12:02:03 +00:00
obache
a36b0c6a91
check missing declaration of setpassent(3) for Cygwin.
2013-02-10 12:38:52 +00:00
joerg
f0366f7955
If either va_copy or __builtin_va_copy is supported, use that in the
...
asprintf fallback implementation. If neither is supported, still try to
work by copying va_list directly. Should fix PR 45767.
2012-07-02 16:02:53 +00:00
christos
03fd99d9f3
Don't re-define __UNCONST if it is already defined. On old NetBSD systems
...
the definition is a bit different so they bitch.
2012-05-15 16:45:45 +00:00
hans
636aac4550
Wrap the fts function declarations in __BEGIN_DECL to make them usable
...
from C++.
2012-03-01 16:18:51 +00:00
joerg
3fd760a3f2
libnbcompat-20111228: If requesting BSDish getopt behavior, also include
...
our own getopt_long. Add a message to signify this in the configure
output. Fixes issues reported by hans@ on Solaris with nbpatch. OK
during freeze by wiz@
2011-12-28 19:19:31 +00:00
joerg
a2f8a2ca29
Don't use implementation namespace as include guard. If not using our
...
SHA2 code, fallback to <sha2.h>.
2011-11-10 21:58:43 +00:00
joerg
5240579584
Avoid overlap with libcrypto, the OSF linker can't deal with that.
...
Fixes PR 42142.
2011-11-08 18:20:03 +00:00
joerg
4d2055c5a6
Add workaround for broken pread/pwrite. This is needed at least on
...
HP-UX.
2010-04-20 00:32:22 +00:00
obache
61a5b410b4
Avoid conflicting types for `pgno_t', treat same as db_185.h in db[234].
...
IRIX have it in sys/types.h as reported by PR42841.
2010-03-03 06:03:45 +00:00
joerg
b072540d05
BSIZE and BSHIFT are defined by sys/param.h on HP-UX, so undef them
...
first.
2010-02-27 16:27:00 +00:00
joerg
4ff999cd9b
PR 38488: It looks like BSDish warn(3), it smells like BSDish warn(3),
...
but it isn't BSDish warn(3). Do not use warn(3) family on Mac OS X, as
it likes to vis(3) some arguments.
2010-02-20 15:21:35 +00:00
obache
4f87926c6e
* check endian.h and use it if available, for Haiku.
...
* check optarg, it is used in nbcompat/unistd.h, but not checked.
* check socket() in -lnetwork in addition to -lsocket, for Haiku.
2010-01-24 12:41:21 +00:00
obache
a6a8791e0f
Kill __weak_alias, it break build on OpenBSD as reported in PR#42102.
2010-01-24 12:29:48 +00:00
obache
e675d00b18
complement NBBY with 8 if not defined.
2010-01-24 08:52:01 +00:00
joerg
f7c0bdf9fa
Update config.guess/config.sub as the normal replacement doesn't work
...
here.
2010-01-23 23:42:55 +00:00
abs
f2c6e9bb56
Change the logic from
...
#ifdef MMAP_NOT_AVAILABLE
/* Code which uses mmap, but with a comment saying we don't want to use it */
#endif
to
#if !defined(MMAP_NOT_AVAILABLE) && 0
/* Code which uses mmap, but with a comment saying we don't want to use it */
#endif
so system without mmap() also work...
2009-07-16 18:23:32 +00:00
joerg
f92f0ec9f2
libnbcompat-20090605:
...
Add support for stdbool.h. Tested by sketch on Solaris (where stdbool.h
only works in C99 mode).
2009-06-05 19:58:04 +00:00
schmonz
fb067c2ce4
Attempt to apply a bit of DWIM to previous (PR 41368).
2009-05-07 00:23:45 +00:00
joerg
13d518c33c
Deal with missing PATH_MAX as reported in PR 41368.
2009-05-06 16:57:31 +00:00
joerg
1cde2cc7fd
Always declare optreset.
...
XXX optreset should be removed here, it can't be used correctly with a
GNU getopt_long implementation without touching the environment.
2009-04-14 17:34:41 +00:00
joerg
f149e75ff0
libnbcompat-20090409:
...
Resort and improve getopt_long detection. Should fix issues on Interix
reported by mishka@ and QNX problems reported by Sean Boudreau.
2009-04-13 11:30:46 +00:00
joerg
cd6932eb69
libnbcompat-20090322:
...
Don't use getopt_long as replacement for getopt. It behaves different
and doesn't work well in combination with optreset. Instead use
getopt(3) from NetBSD if requested. Sync getopt_long.c with NetBSD while
here. Addresses issues with pkg_admin on Solaris reported by Tim Zingelman.
2009-03-22 22:33:13 +00:00