[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: Stefan.Becker () nmp ! nokia ! com
Date: 1999-07-28 6:46:38
[Download RAW message or body]
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). A configure
check for flock must be added.
--------------------------- CUT HERE ---------------------------------
--- kdenetwork/ktalkd/mail.local/mail.local.c~ Tue Mar 30 02:25:10 1999
+++ kdenetwork/ktalkd/mail.local/mail.local.c Tue Jul 27 13:10:23 1999
@@ -451,7 +451,13 @@
}
/* Wait until we can get a lock on the file. */
- if (flock(mbfd, LOCK_EX)) {
+ if (
+#ifdef HAVE_FLOCK
+ flock(mbfd, LOCK_EX)
+#else
+ lockf(mbfd, F_LOCK, 0)
+#endif
+ ) {
e_to_sys(errno);
warn("%s: %s", path, strerror(errno));
goto err1;
--------------------------- CUT HERE ---------------------------------
Regards,
Stefan
---
Stefan Becker
E-Mail: Stefan.Becker@nmp.nokia.com
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic