summaryrefslogtreecommitdiff
path: root/pkgtools/libnbcompat/files
AgeCommit message (Collapse)AuthorFilesLines
2010-03-03Avoid conflicting types for `pgno_t', treat same as db_185.h in db[234].obache1-1/+9
IRIX have it in sys/types.h as reported by PR42841.
2010-02-27BSIZE and BSHIFT are defined by sys/param.h on HP-UX, so undef themjoerg1-1/+3
first.
2010-02-20PR 38488: It looks like BSDish warn(3), it smells like BSDish warn(3),joerg2-9859/+2181
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-01-24* check endian.h and use it if available, for Haiku.obache4-32/+125
* check optarg, it is used in nbcompat/unistd.h, but not checked. * check socket() in -lnetwork in addition to -lsocket, for Haiku.
2010-01-24Kill __weak_alias, it break build on OpenBSD as reported in PR#42102.obache2-4/+8
2010-01-24complement NBBY with 8 if not defined.obache1-1/+5
2010-01-23Update config.guess/config.sub as the normal replacement doesn't workjoerg2-171/+243
here.
2009-07-16Change the logic fromabs1-3/+3
#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-06-05libnbcompat-20090605:joerg5-13/+295
Add support for stdbool.h. Tested by sketch on Solaris (where stdbool.h only works in C99 mode).
2009-05-07Attempt to apply a bit of DWIM to previous (PR 41368).schmonz2-8/+8
2009-05-06Deal with missing PATH_MAX as reported in PR 41368.joerg2-5/+13
2009-04-14Always declare optreset.joerg1-5/+5
XXX optreset should be removed here, it can't be used correctly with a GNU getopt_long implementation without touching the environment.
2009-04-13libnbcompat-20090409:joerg4-32/+84
Resort and improve getopt_long detection. Should fix issues on Interix reported by mishka@ and QNX problems reported by Sean Boudreau.
2009-03-22libnbcompat-20090322:joerg4-83/+208
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-02libnbcompat-20090302:joerg1-1/+6
Add TAILQ_LAST.
2009-02-26Provide TAILQ_FOREACH_SAFE if it is missing.joerg1-1/+8
2009-02-19Fix PR 40151 - bootstrap of pkgsrc fails on Ubuntu 8.10abs1-1/+6
- 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-09Only use issetugid if it exists. Fixes reported build issues on QNX andjoerg5-232/+411
AIX.
2008-12-14Need to include stdint.h for unit64_t on SUA 6.0.obache1-1/+5
2008-11-08OpenBSD headers are still not standalone, even though SUS is prettyjoerg2-5/+56
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-06Add some forgotten ifndefs to fix issues on DragonFly.joerg1-1/+7
2008-10-30Define __UNCONST. From PR 39797.joerg1-3/+5
2008-10-30Avoid STAT as macro, it exists in sys/dir.h on AIX already.joerg2-27/+15
2008-10-29Don't use __RENAME.joerg1-6/+6
2008-10-29Provide more compat glue for ndbm interface as shown in PR 39738.joerg3-8/+85
Bump to libnbcompat-20081029.
2008-10-28Define away O_EXLOCK and O_SHLOCK if they are missing.joerg1-2/+9
2008-10-28Use nbcompat/paths.h, Solaris is missing paths.h. From Uwe Klaus.joerg2-6/+6
2008-10-28Add circleq support. Bump to 20081028. Should fix IRIX build fromjoerg1-1/+132
PR 39797.
2008-10-28Replace EFTYPE with EINVAL if the former doesn't exist.joerg3-4/+18
2008-10-26Provide and use local mpool.h.joerg3-5/+108
2008-10-26Explicitly check for libnsl and libsocket as required by Solaris.joerg2-1/+155
Based on patches from Aleksey Cheusov.
2008-10-19Include nbcompat/types.h early to make sure that uintX_t are defined.joerg1-2/+2
Reported by Aleksey Cheusov and Joern Clausen in PR 39738.
2008-10-10pkg_install-20081010:joerg43-2/+11189
Add optional bdb. Make it included by default for standalone builds.
2008-10-08Mac OS X doesn't define uintXX_t in sys/types.h, so explicitly pull injoerg4-3/+17
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-07Check for existance of sysexits.h and regen config.h.in.joerg3-11/+6
2008-10-06libnbcompat-20080922:joerg23-1540/+1733
- DESTDIR support - Add check for inttypes.h and sys/socket.h - Provide compatibility fallback for netdb.h and the RFC2553 API (getaddrinfo), supoprting IPv4 only. Code from OpenSSH. - Use normal autoconf checks for fixed size bit types. Stop using the older BSD types (u_intXX_t) in libnbcompat. - Add implementation of shquote (from NetBSD). - Fix a buglet in the getenv/setenv/unsetenv detection. - Fix a buglet in the mkdtemp/mkstemp detection.
2008-09-12Determine both for setmode.c and pwcache.c if any of the functions isjoerg2-116/+20
provided by the system and if one is lacking use the file. Don't short cut the list as before and do a second iteration, it is just confusing. This breaks the regression introduced by the last commit on OS X.
2008-09-08libnbcompat-20080908:joerg6-66/+226
- declare endpwent and endgrent if system headers are missing them - check for existance of statfs.f_flags before using it - drop a bunch of redundant function checks Based on the work of Timothy Larson.
2008-06-19Make style more consistent.joerg1-6/+6
2008-05-19libnbcompat-20080519:joerg3-15/+12
Many of the hash function headers are incompatible with the OpenSSL headers, so don't include them by default and require the caller to include them on demand.
2008-04-29Drop clauses 3 and 4 from TNF licensesmartin37-298/+39
2008-04-21libnbcompat-20080422:joerg4-2411/+4068
Check if stdio.h declares vasprintf and snprintf and provide a prototype otherwise.
2008-04-17Don't let a mathematican add numbers with less than 20 digits. Fix thejoerg1-1/+1
the offset for November and December and welcome libnbcompat-20080416.
2008-04-04Add an implement of timegm(3) from nsd (based on Python code).joerg2-1/+85
2008-04-04Add an implement of timegm(3) from nsd (based on Python code).joerg2-1/+96
2008-03-21libnbcompat-20080322:joerg3-155/+188
Add an option to force a BSDish getopt (e.g. one with optreset). Use the correct macros to decide when to define optind and friends.
2008-02-21libnbcompat-20080221:tnn3-1/+577
- Use AC_FUNC_VFORK, needed on IRIX to get missing vfork() defined to fork(). Ok by joerg.
2008-02-14Move my code to two-clause license.tnn1-25/+16
2008-02-12libnbcompat-20080212:joerg3-9/+14
Add digest length defines for md5, rmd160 and sha1. Use __BEGIN_DECLS/__END_DECLS. Drop _KERNEL conditionals.
2007-09-21If dirfd is either a function or a macro, use it. If it doesn't exist,joerg5-7/+250
but DIR contains dd_fd, define it as macro. Otherwise use -1 when calling fts_safe_changedir in fts(3). Based on patch from Sean Boudreau.