diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-11-13 01:46:13 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2002-11-13 01:46:13 +0000 |
commit | cda421d983ec4199c7aac22d421faa870f3a0e48 (patch) | |
tree | 466e76377a2eaa7e92ecd801aeed1d21f256008a /audio/rawrec/files/patch-record.c | |
parent | fix for different tcl versions (diff) |
fix mlockall usage on -current
PR: 44951
Submitted by: Volker Stolz <vs@foldr.org>
Diffstat (limited to 'audio/rawrec/files/patch-record.c')
-rw-r--r-- | audio/rawrec/files/patch-record.c | 11 |
1 files changed, 11 insertions, 0 deletions
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(""); |