diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-11-13 09:46:13 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-11-13 09:46:13 +0800 |
commit | 94a9126d1e5db062efa746fdfcdde6fb1fc381c6 (patch) | |
tree | 62c15c26966e7d8b870104cd8aea3e55a0767989 /audio | |
parent | d85ffceb0c53571ca1c64b1ee1e58c625eee4b8a (diff) | |
download | freebsd-ports-gnome-94a9126d1e5db062efa746fdfcdde6fb1fc381c6.tar.gz freebsd-ports-gnome-94a9126d1e5db062efa746fdfcdde6fb1fc381c6.tar.zst freebsd-ports-gnome-94a9126d1e5db062efa746fdfcdde6fb1fc381c6.zip |
fix mlockall usage on -current
PR: 44951
Submitted by: Volker Stolz <vs@foldr.org>
Diffstat (limited to 'audio')
-rw-r--r-- | audio/rawrec/Makefile | 2 | ||||
-rw-r--r-- | audio/rawrec/files/patch-play.c | 11 | ||||
-rw-r--r-- | audio/rawrec/files/patch-record.c | 11 |
3 files changed, 23 insertions, 1 deletions
diff --git a/audio/rawrec/Makefile b/audio/rawrec/Makefile index 2c2da8cdf6e7..c2a3c086ed64 100644 --- a/audio/rawrec/Makefile +++ b/audio/rawrec/Makefile @@ -8,7 +8,7 @@ PORTNAME= rawrec PORTVERSION= 0.9.97 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SUNSITE} \ ${MASTER_SITE_SOURCEFORGE} diff --git a/audio/rawrec/files/patch-play.c b/audio/rawrec/files/patch-play.c new file mode 100644 index 000000000000..fd94beeeaa85 --- /dev/null +++ b/audio/rawrec/files/patch-play.c @@ -0,0 +1,11 @@ +--- play.c.orig Tue Nov 5 22:11:11 2002 ++++ play.c Tue Nov 5 22:11:38 2002 +@@ -400,7 +400,7 @@ + } + + /* Entering critical section. Lock down our memory, if possible. */ +-#ifdef _POSIX_MEMLOCK ++#if _POSIX_MEMLOCK == 1 + if ( mlockall(MCL_CURRENT) == -1 ) { + fprintf(stderr, "%s: mlockall(MCL_CURRENT) failed: ", progname); + perror(""); diff --git a/audio/rawrec/files/patch-record.c b/audio/rawrec/files/patch-record.c new file mode 100644 index 000000000000..206152df95d8 --- /dev/null +++ b/audio/rawrec/files/patch-record.c @@ -0,0 +1,11 @@ +--- record.c.orig Tue Nov 5 22:11:18 2002 ++++ record.c Tue Nov 5 22:11:55 2002 +@@ -317,7 +317,7 @@ + } + + /* Entering critical section. Lock down our memory, if possible. */ +-#ifdef _POSIX_MEMLOCK ++#if _POSIX_MEMLOCK == 1 + if ( mlockall(MCL_CURRENT) == -1 ) { + fprintf(stderr, "%s: mlockall(MCL_CURRENT) failed: ", progname); + perror(""); |