Commit graph

263 commits

Author SHA1 Message Date
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
joerg
98648e83e3 Check for existance of sysexits.h and regen config.h.in. 2008-10-07 16:03:10 +00:00
joerg
9542074cb2 libnbcompat-20080922:
- 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-10-06 12:36:19 +00:00
joerg
69ed4e430d Determine both for setmode.c and pwcache.c if any of the functions is
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-12 13:47:26 +00:00
joerg
2c43b4f278 libnbcompat-20080908:
- 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-09-08 20:20:22 +00:00
joerg
1270427078 Don't mess with PKG_* as it is not required to build bootstrap
components and it interferes with normal builds.
2008-07-27 16:02:09 +00:00
joerg
e33690ba5d Make style more consistent. 2008-06-19 17:28:09 +00:00
joerg
4aa5709b48 libnbcompat-20080519:
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-05-19 12:52:57 +00:00
martin
d86d72404e Drop clauses 3 and 4 from TNF licenses 2008-04-29 05:46:08 +00:00
joerg
41548023fd libnbcompat-20080422:
Check if stdio.h declares vasprintf and snprintf and provide a prototype
otherwise.
2008-04-21 22:24:43 +00:00
joerg
b9495db99b Don't let a mathematican add numbers with less than 20 digits. Fix the
the offset for November and December and welcome libnbcompat-20080416.
2008-04-17 08:11:12 +00:00
joerg
6d93d84461 libnbcompat-20080404:
Add an implement of timegm(3) from nsd (based on Python code).
2008-04-04 15:20:33 +00:00
joerg
6279818d31 Add an implement of timegm(3) from nsd (based on Python code). 2008-04-04 15:20:00 +00:00
joerg
25637e137b Add an implement of timegm(3) from nsd (based on Python code). 2008-04-04 15:19:10 +00:00
joerg
46474f9f02 libnbcompat-20080322:
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-03-21 23:28:08 +00:00
tnn
d3fa34a3c6 Introduce a variable, LIBNBCOMPAT_USE_PIC, which if set to yes before
including inplace.mk causes a PIC version of libnbcompat to be built
alongside the regular static libnbcompat.

This will be used to extend the features framework in two ways:
1) Support linking features into shared modules
2) Ability to cherry-pick individual objects to link from the libnbcompat
   build directory rather than linking the whole archive.
2008-02-22 04:07:55 +00:00