diff options
author | tron <tron@pkgsrc.org> | 2013-11-26 14:57:33 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 2013-11-26 14:57:33 +0000 |
commit | 1a0715036462ad3f21c52df2096983fa2369eec6 (patch) | |
tree | 3d5b3b823d31cfbe982ec2dc9644c550be3b71c3 /sysutils | |
parent | 89f79646cadbd9fb922d1d040b382b1e4b6007cf (diff) | |
download | pkgsrc-1a0715036462ad3f21c52df2096983fa2369eec6.tar.gz |
Fix build under NetBSD 6.0* and 6.1*.
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/cdrtools/Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/sysutils/cdrtools/Makefile b/sysutils/cdrtools/Makefile index eb34f21422c..7c7d8a67c4a 100644 --- a/sysutils/cdrtools/Makefile +++ b/sysutils/cdrtools/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.100 2013/11/25 12:06:07 wiz Exp $ +# $NetBSD: Makefile,v 1.101 2013/11/26 14:57:33 tron Exp $ DISTNAME= cdrtools-3.01a19 PKGNAME= ${DISTNAME:S/a/alpha/:S/-pre/pre/} @@ -27,6 +27,18 @@ USE_TOOLS+= gm4 gmake tbl CFLAGS.NetBSD+= -DUSE_GETRAWPARTITION LDFLAGS.NetBSD+= -lutil +# NetBSD 6.0 (and update releases) have incomplete implemenations of the +# "*at" system calls. Pretend that they aren't present at all to +# avoid build failures. +.if !empty(MACHINE_PLATFORM:MNetBSD-[5-6].*-*) && \ + empty(MACHINE_PLATFORM:MNetBSD-6.99.*-*) +. for FUNC in faccessat fchmodat fchownat fexecve fstatat linkat mkdirat \ + mkfifoat mknodat openat readlinkat renameat symlinkat unlinkat \ + utimensat +CONFIGURE_ENV+= ac_cv_func_${FUNC}=no +. endfor +.endif + # avoid picking up a bad ${ARCH} during the build MAKE_ENV+= ARCH="" MAKE_ENV+= MAKEPROG="gmake" |