X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Ftstlockscope.c;h=b31776356f3c55bb72912d1df5c4692013746248;hb=f5eb6612606c3365834ea5aad430b364902d42a3;hp=32e9ce8589fed3b42056b7ad0b4ae0a26d559e5e;hpb=a030c87bc444608639905eca95e29f84a4f1d991;p=idzebra-moved-to-github.git diff --git a/util/tstlockscope.c b/util/tstlockscope.c index 32e9ce8..b317763 100644 --- a/util/tstlockscope.c +++ b/util/tstlockscope.c @@ -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); }