1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

According to an unreliable source, when _POSIX_MEMLOCK is defined

as -1, that means it is "never available."
This commit is contained in:
Trevor Johnson 2003-05-23 01:29:04 +00:00
parent e384e5eafe
commit 4ef987ed22
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=81766
2 changed files with 18 additions and 11 deletions

View File

@ -17,12 +17,6 @@ COMMENT= Pure Data, a MIDI-capable real-time audio processor/synthesizer
LIB_DEPENDS= tcl83:${PORTSDIR}/lang/tcl83 \
tk83:${PORTSDIR}/x11-toolkits/tk83
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500113
BROKEN= "Does not compile"
.endif
GNU_CONFIGURE= yes
CONFIGURE_ENV= CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS}" \
LIBS="${PTHREAD_LIBS} -L${LOCALBASE}/lib -ltk83 -ltcl83"
@ -92,4 +86,4 @@ do-install:
${MKDIR} ${DATADIR}
cd ${WRKSRC}/../extra && pax -r -w * ${DATADIR}
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,5 +1,7 @@
--- src/s_freebsd.c.orig Sun Oct 20 02:49:11 2002
+++ src/s_freebsd.c Sun Oct 20 02:53:24 2002
$FreeBSD$
--- src/s_freebsd.c.orig Fri May 23 00:52:34 2003
+++ src/s_freebsd.c Fri May 23 01:01:59 2003
@@ -32,7 +32,8 @@
* 1311:forum::für::umläute:2001
*/
@ -10,7 +12,18 @@
#if (defined(ALSA01) || defined(ALSA99))
#define ALSA
@@ -865,7 +866,8 @@
@@ -762,8 +762,10 @@
#endif
#ifdef _POSIX_MEMLOCK
+#if _POSIX_MEMLOCK != -1
if (mlockall(MCL_FUTURE) != -1)
fprintf(stderr, "memory locking enabled.\n");
+#endif
#endif
}
@@ -865,7 +868,8 @@
}
else
{
@ -20,7 +33,7 @@
dev->d_bytespersamp = 2;
}
param = wantformat;
@@ -2747,7 +2749,7 @@
@@ -2747,7 +2751,7 @@
/* use ctrlpanel to change, experiment, channels 1 */