Hello, Amos Jeffries, on jeu. 23 nov. 2017 04:51:24 +1300, wrote: > I am facing a small portability issue on Hurd. Specifically missing > definition of LOCK_UN for use as flock() parameter when compiling > <http://bazaar.launchpad.net/~squid/squid/4/view/head:/src/base/File.h> > > There seems to be work from 2001/2002 and a GSoC from 2014 making patches, > but these do not appear to be in the current Hurd build on Debian through > the expected fcntl.h include.
The LOCK_UN macro is available through <sys/file.h>, just like on Linux. The fact that fcntl.h happens to pull sys/file.h on Linux is just a side effect. The document way really is <sys/file.h> on Linux too. Samuel
