diff options
author | epg <epg@pkgsrc.org> | 2007-01-24 19:31:24 +0000 |
---|---|---|
committer | epg <epg@pkgsrc.org> | 2007-01-24 19:31:24 +0000 |
commit | 5e1c322cc97639616bbf6ac8e9b17ed37ef4d831 (patch) | |
tree | 8dc90dd2ab79c73d1577460f6cc2974c20a4e225 /devel | |
parent | 361c403f7669ce9438364660dc26b214e8f4bf0b (diff) | |
download | pkgsrc-5e1c322cc97639616bbf6ac8e9b17ed37ef4d831.tar.gz |
Import renamed devel/apr (0.9.x) so that can upgrade to 1.2.x.
Diffstat (limited to 'devel')
-rw-r--r-- | devel/apr0/DESCR | 3 | ||||
-rw-r--r-- | devel/apr0/Makefile | 69 | ||||
-rw-r--r-- | devel/apr0/PLIST | 93 | ||||
-rw-r--r-- | devel/apr0/buildlink3.mk | 47 | ||||
-rw-r--r-- | devel/apr0/distinfo | 14 | ||||
-rw-r--r-- | devel/apr0/options.mk | 20 | ||||
-rw-r--r-- | devel/apr0/patches/patch-aa | 22 | ||||
-rw-r--r-- | devel/apr0/patches/patch-an | 13 | ||||
-rw-r--r-- | devel/apr0/patches/patch-ao | 13 | ||||
-rw-r--r-- | devel/apr0/patches/patch-ap | 22 | ||||
-rw-r--r-- | devel/apr0/patches/patch-aq | 22 | ||||
-rw-r--r-- | devel/apr0/patches/patch-ar | 20 | ||||
-rw-r--r-- | devel/apr0/patches/patch-as | 22 | ||||
-rw-r--r-- | devel/apr0/patches/patch-at | 17 | ||||
-rw-r--r-- | devel/apr0/patches/patch-au | 15 |
15 files changed, 412 insertions, 0 deletions
diff --git a/devel/apr0/DESCR b/devel/apr0/DESCR new file mode 100644 index 00000000000..4961cf68f32 --- /dev/null +++ b/devel/apr0/DESCR @@ -0,0 +1,3 @@ +The Apache Portable Run-time mission is to provide a library of +routines that allows programmers to write a program once and be +able to compile it anywhere. diff --git a/devel/apr0/Makefile b/devel/apr0/Makefile new file mode 100644 index 00000000000..20c1bfd6c90 --- /dev/null +++ b/devel/apr0/Makefile @@ -0,0 +1,69 @@ +# $NetBSD: Makefile,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +.include "../../www/apache2/Makefile.common" + +PKGNAME= apr-${APR_VERSION}.${APACHE_VERSION} +PKGREVISION= 2 +CATEGORIES= devel + +HOMEPAGE= http://apr.apache.org/ +COMMENT= Apache Portable Runtime + +PKG_DESTDIR_SUPPORT= user-destdir + +# Don't bump this when apache upgrades; it is only apache2-2.0.45 and +# under that includes its own apr. apr was split out in 2.0.45nb1. +CONFLICTS= apache2<=2.0.45 + +PKG_INSTALLATION_TYPES= overwrite pkgviews + +WRKSRC= ${WRKDIR}/${DISTNAME}/srclib +BUILD_DIRS= apr apr-util + +USE_LIBTOOL= yes +GNU_CONFIGURE= yes +CONFIGURE_ENV+= LIBS=${LIBS:M*:Q} +LIBS.SunOS+= -lnsl + +APR_CONFIGURE_ARGS= \ + --prefix=${PREFIX} \ + --with-devrandom=/dev/urandom \ + --with-installbuilddir=${PREFIX}/libexec/apr + +APU_CONFIGURE_ARGS= \ + --prefix=${PREFIX} \ + --with-apr=${WRKSRC}/apr \ + --with-expat=${BUILDLINK_PREFIX.expat} \ + --without-gdbm + +.include "../../mk/bsd.prefs.mk" +.include "../../textproc/expat/buildlink3.mk" +.include "options.mk" + +SUBST_CLASSES+= conf +SUBST_STAGE.conf= pre-configure +SUBST_FILES.conf= apr/config.layout apr-util/config.layout +SUBST_SED.conf= -e "s,@PREFIX@,${PREFIX},g" +SUBST_MESSAGE.conf= Fixing hardcoded paths. + +TEST_TARGET= check + +do-configure: + cd ${WRKSRC}/apr && ${SETENV} ${CONFIGURE_ENV} ./configure \ + ${APR_CONFIGURE_ARGS} + cd ${WRKSRC}/apr-util && ${SETENV} ${CONFIGURE_ENV} ./configure \ + ${APU_CONFIGURE_ARGS} + +post-install: + ${RM} ${DESTDIR}${PREFIX}/libexec/apr/libtool + ${INSTALL_SCRIPT} ${PKG_LIBTOOL} ${DESTDIR}${PREFIX}/libexec/apr/libtool + ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/apr-0/arch/unix + ${INSTALL_DATA} ${WRKSRC}/apr/include/arch/*.h ${DESTDIR}${PREFIX}/include/apr-0/arch + ${INSTALL_DATA} ${WRKSRC}/apr/include/arch/unix/*.h ${DESTDIR}${PREFIX}/include/apr-0/arch/unix/ + ${CHMOD} ${SHAREMODE} ${DESTDIR}${PREFIX}/include/apr-0/*.h + ${CHMOD} ${PKGDIRMODE} ${DESTDIR}${PREFIX}/include/apr-0 + ${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DESTDIR}${PREFIX}/include/apr-0/ + +.include "../../converters/libiconv/buildlink3.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/devel/apr0/PLIST b/devel/apr0/PLIST new file mode 100644 index 00000000000..ecb1e3bdbc0 --- /dev/null +++ b/devel/apr0/PLIST @@ -0,0 +1,93 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ +bin/apr-config +bin/apu-config +include/apr-0/apr.h +include/apr-0/apr_allocator.h +include/apr-0/apr_anylock.h +include/apr-0/apr_atomic.h +include/apr-0/apr_base64.h +include/apr-0/apr_buckets.h +include/apr-0/apr_compat.h +include/apr-0/apr_date.h +include/apr-0/apr_dbm.h +include/apr-0/apr_dso.h +include/apr-0/apr_env.h +include/apr-0/apr_errno.h +include/apr-0/apr_file_info.h +include/apr-0/apr_file_io.h +include/apr-0/apr_fnmatch.h +include/apr-0/apr_general.h +include/apr-0/apr_getopt.h +include/apr-0/apr_global_mutex.h +include/apr-0/apr_hash.h +include/apr-0/apr_hooks.h +include/apr-0/apr_inherit.h +include/apr-0/apr_ldap.h +include/apr-0/apr_ldap_url.h +include/apr-0/apr_lib.h +include/apr-0/apr_md4.h +include/apr-0/apr_md5.h +include/apr-0/apr_mmap.h +include/apr-0/apr_network_io.h +include/apr-0/apr_optional.h +include/apr-0/apr_optional_hooks.h +include/apr-0/apr_poll.h +include/apr-0/apr_pools.h +include/apr-0/apr_portable.h +include/apr-0/apr_proc_mutex.h +include/apr-0/apr_queue.h +include/apr-0/apr_reslist.h +include/apr-0/apr_ring.h +include/apr-0/apr_rmm.h +include/apr-0/apr_sdbm.h +include/apr-0/apr_sha1.h +include/apr-0/apr_shm.h +include/apr-0/apr_signal.h +include/apr-0/apr_strings.h +include/apr-0/apr_strmatch.h +include/apr-0/apr_support.h +include/apr-0/apr_tables.h +include/apr-0/apr_thread_cond.h +include/apr-0/apr_thread_mutex.h +include/apr-0/apr_thread_proc.h +include/apr-0/apr_thread_rwlock.h +include/apr-0/apr_time.h +include/apr-0/apr_uri.h +include/apr-0/apr_user.h +include/apr-0/apr_uuid.h +include/apr-0/apr_version.h +include/apr-0/apr_want.h +include/apr-0/apr_xlate.h +include/apr-0/apr_xml.h +include/apr-0/apu.h +include/apr-0/apu_compat.h +include/apr-0/apu_version.h +include/apr-0/apu_want.h +include/apr-0/arch/apr_private_common.h +include/apr-0/arch/unix/apr_arch_dso.h +include/apr-0/arch/unix/apr_arch_file_io.h +include/apr-0/arch/unix/apr_arch_global_mutex.h +include/apr-0/arch/unix/apr_arch_inherit.h +include/apr-0/arch/unix/apr_arch_internal_time.h +include/apr-0/arch/unix/apr_arch_misc.h +include/apr-0/arch/unix/apr_arch_networkio.h +include/apr-0/arch/unix/apr_arch_proc_mutex.h +include/apr-0/arch/unix/apr_arch_shm.h +include/apr-0/arch/unix/apr_arch_thread_cond.h +include/apr-0/arch/unix/apr_arch_thread_mutex.h +include/apr-0/arch/unix/apr_arch_thread_rwlock.h +include/apr-0/arch/unix/apr_arch_threadproc.h +include/apr-0/arch/unix/apr_private.h +lib/apr.exp +lib/aprutil.exp +lib/libapr-0.la +lib/libaprutil-0.la +libexec/apr/apr_rules.mk +libexec/apr/libtool +libexec/apr/make_exports.awk +libexec/apr/make_var_export.awk +libexec/apr/mkdir.sh +@dirrm libexec/apr +@dirrm include/apr-0/arch/unix +@dirrm include/apr-0/arch +@dirrm include/apr-0 diff --git a/devel/apr0/buildlink3.mk b/devel/apr0/buildlink3.mk new file mode 100644 index 00000000000..6b11705aac4 --- /dev/null +++ b/devel/apr0/buildlink3.mk @@ -0,0 +1,47 @@ +# $NetBSD: buildlink3.mk,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+ +APR_BUILDLINK3_MK:= ${APR_BUILDLINK3_MK}+ + +.if !empty(BUILDLINK_DEPTH:M+) +BUILDLINK_DEPENDS+= apr +.endif + +BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Napr} +BUILDLINK_PACKAGES+= apr +BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}apr + +.if !empty(APR_BUILDLINK3_MK:M+) +BUILDLINK_API_DEPENDS.apr+= apr>=0.9.5.2.0.51nb1 +BUILDLINK_ABI_DEPENDS.apr+= apr>=0.9.7.2.0.55nb2 +BUILDLINK_PKGSRCDIR.apr?= ../../devel/apr0 + +WRAPPER_REORDER_CMDS+= reorder:l:aprutil-0:crypt + +BUILDLINK_FILES.apr+= bin/apr-config +BUILDLINK_FILES.apr+= bin/apu-config +BUILDLINK_FILES.apr+= lib/*.exp + +.include "../../mk/bsd.fast.prefs.mk" + +. if !defined(PKG_BUILD_OPTIONS.apr) +PKG_BUILD_OPTIONS.apr!= cd ${BUILDLINK_PKGSRCDIR.apr} && \ + ${MAKE} show-var ${MAKEFLAGS} VARNAME=PKG_OPTIONS +MAKEFLAGS+= PKG_BUILD_OPTIONS.apr=${PKG_BUILD_OPTIONS.apr:Q} +. endif +MAKEVARS+= PKG_BUILD_OPTIONS.apr +.endif # APR_BUILDLINK3_MK + +.if !empty(PKG_BUILD_OPTIONS.apr:Mdb4) +. include "../../databases/db4/buildlink3.mk" +.endif + +.if !empty(PKG_BUILD_OPTIONS.apr:Mldap) +. include "../../databases/openldap-client/buildlink3.mk" +.endif + +.include "../../converters/libiconv/buildlink3.mk" +.include "../../textproc/expat/buildlink3.mk" +.include "../../mk/dlopen.buildlink3.mk" + +BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//} diff --git a/devel/apr0/distinfo b/devel/apr0/distinfo new file mode 100644 index 00000000000..5f38a206808 --- /dev/null +++ b/devel/apr0/distinfo @@ -0,0 +1,14 @@ +$NetBSD: distinfo,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +SHA1 (httpd-2.0.59.tar.bz2) = 908209cd6e52f700d2a841a25de36e44d469c376 +RMD160 (httpd-2.0.59.tar.bz2) = 78b802354e338798a6978ece8b3568be97542174 +Size (httpd-2.0.59.tar.bz2) = 4743549 bytes +SHA1 (patch-aa) = c84bdb6bcb14bf6bc7ea0d8f13334dd8c3ef2ef9 +SHA1 (patch-an) = 76d9ac0cdddec7c0f41535baee63bf0aa26ed596 +SHA1 (patch-ao) = e35630af53a78fce9aa5347a81cb1bcf8fb3058e +SHA1 (patch-ap) = 357776c7208407936e09891ae87d23b112a12756 +SHA1 (patch-aq) = 6cc1fb879fb5d9280f543ebe068a441e2e6560f3 +SHA1 (patch-ar) = defa2be14ec057e1c41151b8cd1edc0ffb219694 +SHA1 (patch-as) = 37e70ff8b1a3344e47bcd2fe2b145a6e3e6a4562 +SHA1 (patch-at) = 9935c308ba96a8c92dedd3288429a989f9d643f5 +SHA1 (patch-au) = 270a478bdfead4ffe2d069e8441655854fa54e5a diff --git a/devel/apr0/options.mk b/devel/apr0/options.mk new file mode 100644 index 00000000000..ae563a237d7 --- /dev/null +++ b/devel/apr0/options.mk @@ -0,0 +1,20 @@ +# $NetBSD: options.mk,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.apr +PKG_SUPPORTED_OPTIONS= db4 ldap + +.include "../../mk/bsd.options.mk" + +.if !empty(PKG_OPTIONS:Mdb4) +APU_CONFIGURE_ARGS+= \ + --with-berkeley-db=${BUILDLINK_PREFIX.db4}/include:${LOCALBASE} +. include "../../databases/db4/buildlink3.mk" +.else +APU_CONFIGURE_ARGS+= --with-dbm=sdbm +.endif + +.if !empty(PKG_OPTIONS:Mldap) +APU_CONFIGURE_ARGS+= --with-ldap +APR_CONFIGURE_ARGS+= --with-ldap +. include "../../databases/openldap-client/buildlink3.mk" +.endif diff --git a/devel/apr0/patches/patch-aa b/devel/apr0/patches/patch-aa new file mode 100644 index 00000000000..ee12fc5bf51 --- /dev/null +++ b/devel/apr0/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +--- apr/threadproc/unix/signals.c.orig 2005-02-04 15:36:31.000000000 -0500 ++++ apr/threadproc/unix/signals.c +@@ -49,7 +49,7 @@ APR_DECLARE(apr_status_t) apr_proc_kill( + + #if APR_HAVE_SIGACTION + +-#ifdef DARWIN ++#if defined(__NetBSD__) || defined(DARWIN) + static void avoid_zombies(int signo) + { + int exit_status; +@@ -85,7 +85,7 @@ APR_DECLARE(apr_sigfunc_t *) apr_signal( + act.sa_flags |= SA_NOCLDWAIT; + } + #endif +-#ifdef DARWIN ++#if defined(__NetBSD__) || defined(DARWIN) + /* ignoring SIGCHLD or leaving the default disposition doesn't avoid zombies, + * and there is no SA_NOCLDWAIT flag, so catch the signal and reap status in + * the handler to avoid zombies diff --git a/devel/apr0/patches/patch-an b/devel/apr0/patches/patch-an new file mode 100644 index 00000000000..1a98fdbeabf --- /dev/null +++ b/devel/apr0/patches/patch-an @@ -0,0 +1,13 @@ +$NetBSD: patch-an,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +--- apr/configure.in.orig 2005-02-04 16:58:13.000000000 +0000 ++++ apr/configure.in +@@ -1679,7 +1679,7 @@ if test "$rand" != "1"; then + if test "$apr_devrandom" = "yes"; then + # /dev/random on OpenBSD doesn't provide random data, so + # prefer /dev/arandom, which does; see random(4). +- for f in /dev/arandom /dev/random /dev/urandom; do ++ for f in /dev/arandom /dev/urandom /dev/random; do + if test -r $f; then + apr_devrandom=$f + rand=1 diff --git a/devel/apr0/patches/patch-ao b/devel/apr0/patches/patch-ao new file mode 100644 index 00000000000..e9dee966dfa --- /dev/null +++ b/devel/apr0/patches/patch-ao @@ -0,0 +1,13 @@ +$NetBSD: patch-ao,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +--- apr/configure.orig 2005-10-09 18:34:19.000000000 -0700 ++++ apr/configure +@@ -40851,7 +40851,7 @@ fi; + if test "$apr_devrandom" = "yes"; then + # /dev/random on OpenBSD doesn't provide random data, so + # prefer /dev/arandom, which does; see random(4). +- for f in /dev/arandom /dev/random /dev/urandom; do ++ for f in /dev/arandom /dev/urandom /dev/random; do + if test -r $f; then + apr_devrandom=$f + rand=1 diff --git a/devel/apr0/patches/patch-ap b/devel/apr0/patches/patch-ap new file mode 100644 index 00000000000..d1cc35c0576 --- /dev/null +++ b/devel/apr0/patches/patch-ap @@ -0,0 +1,22 @@ +$NetBSD: patch-ap,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +--- apr-util/config.layout.orig Thu Apr 3 17:15:08 2003 ++++ apr-util/config.layout Thu Apr 3 17:14:15 2003 +@@ -229,3 +229,17 @@ + infodir: ${exec_prefix}/share/info + libsuffix -${APRUTIL_MAJOR_VERSION} + </Layout> ++ ++# NetBSD (pkgsrc) layout ++<Layout NetBSD> ++ prefix: @PREFIX@ ++ exec_prefix: ${prefix} ++ bindir: ${exec_prefix}/bin ++ sbindir: ${exec_prefix}/sbin ++ libexecdir: ${exec_prefix}/lib/httpd ++ mandir: ${prefix}/man ++ datadir: ${prefix}/share/httpd ++ includedir: ${prefix}/include/apr ++ localstatedir: /var ++ runtimedir: ${localstatedir}/run ++</Layout> diff --git a/devel/apr0/patches/patch-aq b/devel/apr0/patches/patch-aq new file mode 100644 index 00000000000..45fb735afa6 --- /dev/null +++ b/devel/apr0/patches/patch-aq @@ -0,0 +1,22 @@ +$NetBSD: patch-aq,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +--- apr/config.layout.orig Thu Apr 3 17:14:54 2003 ++++ apr/config.layout Thu Apr 3 17:14:01 2003 +@@ -229,3 +229,17 @@ + infodir: ${exec_prefix}/share/info + libsuffix: -${APR_MAJOR_VERSION} + </Layout> ++ ++# NetBSD (pkgsrc) layout ++<Layout NetBSD> ++ prefix: @PREFIX@ ++ exec_prefix: ${prefix} ++ bindir: ${exec_prefix}/bin ++ sbindir: ${exec_prefix}/sbin ++ libexecdir: ${exec_prefix}/lib/httpd ++ mandir: ${prefix}/man ++ datadir: ${prefix}/share/httpd ++ includedir: ${prefix}/include/apr ++ localstatedir: /var ++ runtimedir: ${localstatedir}/run ++</Layout> diff --git a/devel/apr0/patches/patch-ar b/devel/apr0/patches/patch-ar new file mode 100644 index 00000000000..f46aa506aee --- /dev/null +++ b/devel/apr0/patches/patch-ar @@ -0,0 +1,20 @@ +$NetBSD: patch-ar,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +--- apr/network_io/unix/sendrecv.c.orig 2005-07-15 15:11:22.000000000 +0000 ++++ apr/network_io/unix/sendrecv.c +@@ -372,11 +372,13 @@ do_select: + return rv < 0 ? errno : APR_SUCCESS; + } + +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) || defined(__DragonFly__) + + static int include_hdrs_in_length(void) + { +-#ifdef HAVE_SYS_SYSCTL_H ++#ifdef __DragonFly__ ++ return(0); ++#elif defined(HAVE_SYS_SYSCTL_H) + /* this assumes: + * if the header exists, so does the sysctlbyname() syscall, and + * if the header doesn't exist, the kernel is really old diff --git a/devel/apr0/patches/patch-as b/devel/apr0/patches/patch-as new file mode 100644 index 00000000000..7587f4866d1 --- /dev/null +++ b/devel/apr0/patches/patch-as @@ -0,0 +1,22 @@ +$NetBSD: patch-as,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +--- apr/include/apr_atomic.h.orig 2005-07-15 15:16:55.000000000 +0000 ++++ apr/include/apr_atomic.h +@@ -28,7 +28,7 @@ + /* Platform includes for atomics */ + #if defined(NETWARE) || defined(__MVS__) /* OS/390 */ + #include <stdlib.h> +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) || defined(__DragonFly__) + #include <machine/atomic.h> + #endif + +@@ -159,7 +159,7 @@ inline void *apr_atomic_casptr(void **me + return (void*)atomic_cmpxchg((unsigned long *)mem,(unsigned long)cmp,(unsigned long)with); + } + +-#elif defined(__FreeBSD__) ++#elif defined(__FreeBSD__) || defined(__DragonFly__) + + #define apr_atomic_t apr_uint32_t + #define apr_atomic_add(mem, val) (atomic_add_int(mem,val),mem) diff --git a/devel/apr0/patches/patch-at b/devel/apr0/patches/patch-at new file mode 100644 index 00000000000..47e06bbae3b --- /dev/null +++ b/devel/apr0/patches/patch-at @@ -0,0 +1,17 @@ +$NetBSD: patch-at,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +--- apr/build/apr_hints.m4.orig 2005-07-15 15:19:19.000000000 +0000 ++++ apr/build/apr_hints.m4 +@@ -140,6 +140,12 @@ dnl # Not a problem in 10.20. Ot + # fcntl() lies about O_NONBLOCK on an accept()ed socket (PR kern/26950) + APR_SETIFNULL(ac_cv_o_nonblock_inherited, [yes]) + ;; ++ *-dragonfly*) ++ APR_ADDTO(CFLAGS, [-funsigned-char]) ++ APR_SETIFNULL(enable_threads, [no]) ++ APR_SETIFNULL(apr_lock_method, [USE_FLOCK_SERIALIZE]) ++ APR_ADDTO(CPPFLAGS, [-D_REENTRANT]) ++ ;; + *-freebsd*) + case $host in + *freebsd[2345]*) diff --git a/devel/apr0/patches/patch-au b/devel/apr0/patches/patch-au new file mode 100644 index 00000000000..8b79dee6a0a --- /dev/null +++ b/devel/apr0/patches/patch-au @@ -0,0 +1,15 @@ +$NetBSD: patch-au,v 1.1.1.1 2007/01/24 19:31:24 epg Exp $ + +NetBSD 3.0 does not have pthread_setconcurrency(). + +--- apr/test/testatomic.c.orig 2005-02-04 21:36:31.000000000 +0100 ++++ apr/test/testatomic.c 2006-10-04 22:30:21.000000000 +0200 +@@ -227,7 +227,7 @@ int main(int argc, char**argv) + } + + printf("APR Atomic Test\n===============\n\n"); +-#if !(defined WIN32) && !(defined NETWARE) && !(defined __MVS__) && !(defined DARWIN) ++#if !(defined WIN32) && !(defined NETWARE) && !(defined __MVS__) && !(defined DARWIN) && !defined(__NetBSD__) + pthread_setconcurrency(8); + #endif + printf("%-60s", "Initializing the context"); |