X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=util%2Ftstlockscope.c;h=903e866f1ba170fc98b44612af941d6e19cb3a9c;hp=683646119ca4fad83505dd989dca8f9a9f73ac4e;hb=e4c6861efeeea654bfb00c5f0239ee258629d77f;hpb=97a7adeb9e5059463f039495cc01cfa448463a27 diff --git a/util/tstlockscope.c b/util/tstlockscope.c index 6836461..903e866 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) 2004-2013 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,15 +21,18 @@ 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 #include -#include #include #include -#if YAZ_POSIX_THREADS #include +#if YAZ_POSIX_THREADS +#include #endif int fd; @@ -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