Commit graph

278 commits

Author SHA1 Message Date
obache
a36b0c6a91 check missing declaration of setpassent(3) for Cygwin. 2013-02-10 12:38:52 +00:00
asau
5c2dd9e784 "user-destdir" is default these days 2012-09-11 23:19:33 +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
cheusov
43b64a320f Always build libnbcompat with pkgsrc's make,
this fixes some build failures
2011-08-20 16:13:05 +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
joerg
6c87bd2fe7 Pick up maintainership. 2010-03-21 16:50:41 +00:00
wiz
a4eec2f4cc Reset maintainer, developer lost his commit bit. 2010-03-21 16:29:38 +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
joerg
9378777837 Pass down MAKE_ENV when calling make for inplace builds. 2009-08-17 18:43:49 +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
a5a59a39ee Drop now redundant @unexec ${RMDIR} 2009-06-14 21:02:45 +00:00
joerg
d289453e83 Remove @dirrm entries from PLISTs 2009-06-14 18:10:40 +00:00
joerg
1d4c153068 Fix PLIST. 2009-06-10 11:03:47 +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
joerg
83613e330d Add circleq support. Bump to 20081028. Should fix IRIX build from
PR 39797.
2008-10-28 15:15:18 +00:00
joerg
eece6e89de Replace EFTYPE with EINVAL if the former doesn't exist. 2008-10-28 15:06:26 +00:00
joerg
9944df4826 Provide and use local mpool.h. 2008-10-26 12:51:59 +00:00
joerg
690ac5928f Explicitly check for libnsl and libsocket as required by Solaris.
Based on patches from Aleksey Cheusov.
2008-10-26 12:31:30 +00:00
joerg
c071594cda Include nbcompat/types.h early to make sure that uintX_t are defined.
Reported by Aleksey Cheusov and Joern Clausen in PR 39738.
2008-10-19 21:02:07 +00:00
joerg
bb59fdd51d pkg_install-20081010:
Add optional bdb. Make it included by default for standalone builds.
2008-10-10 00:21:43 +00:00
joerg
aa020a8ff4 Mac OS X doesn't define uintXX_t in sys/types.h, so explicitly pull in
inttypes.h if present. Make md5.h, sha1.h and sha2.h self contained by
including nbcompat/types.h. Problem reported by Greg Troxel.
2008-10-08 14:28:14 +00:00