Subject: | PPerl uses nonportable flock instead of fcntl file locking |
I have attempted to compile PPerl on Solaris 10. Unfortunately the nonportable flock support has been removed in this version of the OS. PPerl fails to compile with the following errors:
main.c: In function `DispatchCall':
main.c:421: error: `LOCK_EX' undeclared (first use in this function)
main.c:421: error: (Each undeclared identifier is reported only once
main.c:421: error: for each function it appears in.)
main.c:421: error: `LOCK_NB' undeclared (first use in this function)
main.c:572: error: `LOCK_UN' undeclared (first use in this function)
make: *** [main.o] Error 1
Portable file locking can be done with fcntl instead. PPerl already uses fcntl elsewhere, so switching to fcntl locking wouldn't introduce new dependencies.
PPerl-0.25
perl, v5.8.6 built for sun4-solaris
SunOS tcp.com 5.10 Generic sun4u sparc SUNW,Ultra-80 Solaris