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
joerg
89f19b4095
libnbcompat-20090302:
...
Add TAILQ_LAST.
2009-03-02 13:54:55 +00:00
joerg
f01efe1be7
Provide TAILQ_FOREACH_SAFE if it is missing.
2009-02-26 16:14:18 +00:00
abs
44dc2856b0
Fix PR 40151 - bootstrap of pkgsrc fails on Ubuntu 8.10
...
- At least Ubuntu 8.1 sets __attribute__((warn_unused_result)) on fwrite()
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509
which means (void)fwrite(...) will *always* generate a warning, so
set -Wno-error to bypass this in Linux.sys.mk
- Ubuntu 8.1 also jumps through hoops to ensure ARG_MAX is *undefined*, so
work around this in tnftp and libnbcompat
2009-02-19 00:51:12 +00:00
joerg
051e2fcd6a
Only use issetugid if it exists. Fixes reported build issues on QNX and
...
AIX.
2009-02-09 20:35:21 +00:00
obache
9244674af5
Need to include stdint.h for unit64_t on SUA 6.0.
2008-12-14 07:50:49 +00:00
joerg
fba094a13c
OpenBSD headers are still not standalone, even though SUS is pretty
...
explicit about it at least for netinet/in.h. Include sys/types.h before
checking for content of sys/socket.h and netinet/in.h to fix this.
Reported and tested by Georg Schwarz.
2008-11-08 21:35:57 +00:00
joerg
6d6f20fbaf
Add some forgotten ifndefs to fix issues on DragonFly.
2008-11-06 00:25:42 +00:00
joerg
1cb2d826a6
Define __UNCONST. From PR 39797.
2008-10-30 19:27:20 +00:00
joerg
18058a4e57
Avoid STAT as macro, it exists in sys/dir.h on AIX already.
2008-10-30 16:00:54 +00:00
joerg
69064b82e8
Don't use __RENAME.
2008-10-29 16:39:03 +00:00
joerg
8dee63e644
Provide more compat glue for ndbm interface as shown in PR 39738.
...
Bump to libnbcompat-20081029.
2008-10-29 11:23:17 +00:00
joerg
7f9c816849
Define away O_EXLOCK and O_SHLOCK if they are missing.
2008-10-28 18:01:06 +00:00
joerg
dde0f32833
Use nbcompat/paths.h, Solaris is missing paths.h. From Uwe Klaus.
2008-10-28 17:57:36 +00:00