diff options
author | ryoon <ryoon@pkgsrc.org> | 2014-03-14 22:09:04 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2014-03-14 22:09:04 +0000 |
commit | f7122def1d070a11d98304d6919c9b75f678a2f4 (patch) | |
tree | dbe1e97f8347824f2471220bbff936dbd4c0ba89 | |
parent | cdd2e4eda3b25371c3fc1039d0d7359661cb5711 (diff) | |
download | pkgsrc-f7122def1d070a11d98304d6919c9b75f678a2f4.tar.gz |
Fix build under SCO OpenServer 5.0.7/3.2
-rw-r--r-- | net/tnftp/files/src/ftp_var.h | 11 | ||||
-rw-r--r-- | pkgtools/pkg_install/Makefile | 8 |
2 files changed, 17 insertions, 2 deletions
diff --git a/net/tnftp/files/src/ftp_var.h b/net/tnftp/files/src/ftp_var.h index 3ee0aaa453f..91b278b9b77 100644 --- a/net/tnftp/files/src/ftp_var.h +++ b/net/tnftp/files/src/ftp_var.h @@ -1,4 +1,4 @@ -/* $NetBSD: ftp_var.h,v 1.6 2008/04/29 05:46:09 martin Exp $ */ +/* $NetBSD: ftp_var.h,v 1.7 2014/03/14 22:10:49 ryoon Exp $ */ /* from NetBSD: ftp_var.h,v 1.75 2007/07/22 05:02:50 lukem Exp */ /*- @@ -193,6 +193,15 @@ enum { #define TMPFILE "ftpXXXXXXXXXX" +/* + * SCO OpenServer 5.0.7/3.2 has PATH_MAX (256) in limits.h. + * But it is not usable ordinal condition. + */ +#if !defined(PATH_MAX) +#if defined(_SCO_DS) +#define PATH_MAX 256 +#endif +#endif #ifndef GLOBAL #define GLOBAL extern diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile index 766dc11fec6..04d6b897f27 100644 --- a/pkgtools/pkg_install/Makefile +++ b/pkgtools/pkg_install/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.202 2014/03/03 03:30:54 obache Exp $ +# $NetBSD: Makefile,v 1.203 2014/03/14 22:09:04 ryoon Exp $ # Notes to package maintainers: # @@ -53,6 +53,12 @@ USE_NATIVE_GCC= yes .include "../../mk/bsd.prefs.mk" +.if ${OS_VARIANT} == "SCOOSR5" +# SCO OpenServer 5.0.7/3.2's strings.h defines strcasecmp with +# "unsigned size_t". We cannot use -Werror for net/libfetch. +MAKE_FLAGS+= NOGCCERROR=yes +.endif + .if defined(_PKGSRC_BARRIER) && empty(USE_CROSS_COMPILE:M[yY][eE][sS]) PKG_ADD_CMD= ${WRKSRC}/add/pkg_add PKG_CREATE_CMD= ${WRKSRC}/create/pkg_create |