X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Ftstlockscope.c;h=c929c8c4d2e1e4d7c409887b4f1f6899ad6b3935;hb=36b87ab1076744bf0438799bb375705f535bcb6b;hp=b64bf7be47ddc1fb7bbe920c12fc407246bfa6e0;hpb=a66b7d79383ae700f3358731eecfe2aafed0e90d;p=idzebra-moved-to-github.git diff --git a/util/tstlockscope.c b/util/tstlockscope.c index b64bf7b..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-2010 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); }