projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Properly escape \ in non-regexp searches
[idzebra-moved-to-github.git]
/
util
/
tstlockscope.c
diff --git
a/util/tstlockscope.c
b/util/tstlockscope.c
index
32e9ce8
..
b317763
100644
(file)
--- 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"
*/
\brief tests scope of fcntl locks.. Either "process" or "thread"
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <stdio.h>
#include <string.h>
@@
-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;
area.l_type = type;
area.l_whence = SEEK_SET;
area.l_len = area.l_start = 0L;
-
+
return fcntl(fd, cmd, &area);
}
return fcntl(fd, cmd, &area);
}