X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Ftstlockscope.c;h=c929c8c4d2e1e4d7c409887b4f1f6899ad6b3935;hb=ce2b82a980c06a45aa2eeeb88c927c90a014da61;hp=32e9ce8589fed3b42056b7ad0b4ae0a26d559e5e;hpb=a030c87bc444608639905eca95e29f84a4f1d991;p=idzebra-moved-to-github.git diff --git a/util/tstlockscope.c b/util/tstlockscope.c index 32e9ce8..c929c8c 100644 --- a/util/tstlockscope.c +++ b/util/tstlockscope.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1994-2011 Index Data + Copyright (C) Index Data Zebra is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free @@ -21,6 +21,9 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA \brief tests scope of fcntl locks.. Either "process" or "thread" */ +#if HAVE_CONFIG_H +#include +#endif #include #include #include @@ -42,7 +45,7 @@ static int file_lock(int fd, int type, int cmd) area.l_type = type; area.l_whence = SEEK_SET; area.l_len = area.l_start = 0L; - + return fcntl(fd, cmd, &area); }