From 17430505a81ec489a17d20d3d7e0283567247e15 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Wed, 10 Dec 1997 21:28:40 +0000 Subject: [PATCH] cond git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4181 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/roken/flock.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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 +