summaryrefslogtreecommitdiff
path: root/security/srm/patches
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2005-11-01 18:59:34 +0000
committertv <tv@pkgsrc.org>2005-11-01 18:59:34 +0000
commit22fb1ab262929efeb239652c51289b7ab14a816d (patch)
tree7d09fed9f3f84b3203c2aa1bd2e5ded69aede94c /security/srm/patches
parent7732ef56d6ec404ec45e7bb2f349dae830352b6b (diff)
downloadpkgsrc-22fb1ab262929efeb239652c51289b7ab14a816d.tar.gz
Fix build on Interix.
(The presence of this sync(2) call is somewhat suspect, given that the call guarantees almost nothing in today's virtual memory implementations, but it is left in for other OS's that do support it.)
Diffstat (limited to 'security/srm/patches')
-rw-r--r--security/srm/patches/patch-aa14
1 files changed, 14 insertions, 0 deletions
diff --git a/security/srm/patches/patch-aa b/security/srm/patches/patch-aa
new file mode 100644
index 00000000000..ef12de0051b
--- /dev/null
+++ b/security/srm/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.1 2005/11/01 18:59:34 tv Exp $
+
+--- src/rename_unlink.c.orig 2003-04-08 12:16:56.000000000 -0400
++++ src/rename_unlink.c
+@@ -45,7 +45,9 @@ int rename_unlink(const char *path) {
+ if (rename(path, new_name) == -1)
+ return -1;
+
++#ifndef __INTERIX
+ sync();
++#endif
+
+ if (lstat(new_name, &statbuf) == -1) {
+ /* Bad mojo, we just renamed to new_name and now the path is invalid.