X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Ftstlockscope.c;h=c929c8c4d2e1e4d7c409887b4f1f6899ad6b3935;hb=ce2b82a980c06a45aa2eeeb88c927c90a014da61;hp=bf28f22af193780f95c0acbdd815859e5230255b;hpb=02a605826f5c382306851a62273fbb4533f57071;p=idzebra-moved-to-github.git diff --git a/util/tstlockscope.c b/util/tstlockscope.c index bf28f22..c929c8c 100644 --- a/util/tstlockscope.c +++ b/util/tstlockscope.c @@ -1,5 +1,5 @@ /* This file is part of the Zebra server. - Copyright (C) 1995-2008 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); } @@ -95,6 +98,7 @@ int main(int argc, char **argv) /* * Local variables: * c-basic-offset: 4 + * c-file-style: "Stroustrup" * indent-tabs-mode: nil * End: * vim: shiftwidth=4 tabstop=8 expandtab