Skip to content
Snippets Groups Projects
Commit 48b3cd0f authored by Hallvard Furuseth's avatar Hallvard Furuseth
Browse files

USE_LOCKF -> HAVE_FLOCK

parent 26f31dca
Branches
Tags
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment