[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    Bug#1619: Compilation error in 1.1.2pre for target   hppa1.1-hp-hpux10.20
From:       Harri Porten <porten () tu-harburg ! de>
Date:       1999-07-28 9:31:54
[Download RAW message or body]

Stefan.Becker@nmp.nokia.com wrote:
> 
> Package: ktalkd
> Version: 1.1.2pre
> 
> HP-UX doesn't have flock(), thus there will be a compilation error for
> mail.local.
> 
> The following patch replaces flock() with lockf(), which should have the
> same semantics (as far as I have understood the man page).

How about this ?

--- mail.local.c        1999/03/30 00:25:10     1.6.2.2
+++ mail.local.c        1999/07/28 09:22:50
@@ -143,7 +143,7 @@
  * If you don't have flock, you could try using lockf instead.
  */
 
-#ifdef USE_LOCKF
+#ifdef USE_LOCKF || !defined(HAVE_FLOCK)
 # define flock(a, b)   lockf(a, b, 0)
 # undef LOCK_EX
 # define LOCK_EX       F_LOCK

> A configure
> check for flock must be added.

Isn't it already there ?

Harri.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic