USE_LOCKF -> HAVE_FLOCK

This commit is contained in:
Hallvard Furuseth 1998-11-04 19:43:51 +00:00
parent 26f31dcaca
commit 48b3cd0f3f

View File

@ -53,10 +53,10 @@ int
lock_fclose( FILE *fp, FILE *lfp )
{
/* unlock */
#ifdef USE_LOCKF
lockf( fileno( lfp ), F_ULOCK, 0 );
#else
#ifdef HAVE_FLOCK
flock( fileno( lfp ), LOCK_UN );
#else
lockf( fileno( lfp ), F_ULOCK, 0 );
#endif
fclose( lfp );