diff --git a/lib/roken/flock.c b/lib/roken/flock.c index f25e6e605..55aaa3d58 100644 --- a/lib/roken/flock.c +++ b/lib/roken/flock.c @@ -38,15 +38,14 @@ #ifdef HAVE_CONFIG_H #include -RCSID("$Id$"); #endif +#ifndef HAVE_GETUID + #include "roken.h" -#ifdef HAVE_FCNTL_H -#include -#endif -#ifdef HAVE_ERRNO_H -#include + +#ifdef HAVE_CONFIG_H +RCSID("$Id$"); #endif #define OP_MASK (LOCK_SH | LOCK_EX | LOCK_UN) @@ -90,3 +89,6 @@ flock(int fd, int operation) return -1; #endif } + +#endif +