From f4479cf421ccfc0dc249f20ebd0e5a00b14ad7ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Groenvall?= Date: Thu, 21 Sep 1995 08:37:12 +0000 Subject: [PATCH] Portewd to HP-UX. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@109 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/popper/pop_dropcopy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appl/popper/pop_dropcopy.c b/appl/popper/pop_dropcopy.c index 895ba6c0f..b42a28561 100644 --- a/appl/popper/pop_dropcopy.c +++ b/appl/popper/pop_dropcopy.c @@ -101,7 +101,7 @@ struct passwd * pwp; } /* Lock the temporary maildrop */ - if ( flock (dfd, LOCK_EX|LOCK_NB) == -1 ) + if ( k_flock (dfd, (K_LOCK_EX | K_LOCK_NB)) == -1 ) switch(errno) { case EWOULDBLOCK: return pop_msg(p,POP_FAILURE, @@ -120,7 +120,7 @@ struct passwd * pwp; if ((mfd = open(p->drop_name,O_RDWR)) > 0) { /* Lock the maildrop */ - if (flock (mfd,LOCK_EX) == -1) { + if (k_flock (mfd, K_LOCK_EX) == -1) { (void)close(mfd) ; return pop_msg(p,POP_FAILURE, "flock: '%s': %s", p->temp_drop, (errno < sys_nerr) ? sys_errlist[errno] : "");