This reverts commit
83f2539c5c084d853308993a05999016264be90e.
The change is only needed for stable branches.
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I0ef85d857ebc391388d43bb236db7f9fbf3c4a11
#endif /* HAVE_FLOCK */
-LTTNG_HIDDEN
int utils_create_lock_file(const char *filepath)
{
int ret, fd;
#ifndef COMMON_LOCKFILE_H
#define COMMON_LOCKFILE_H
-#include <common/macros.h>
-
/*
* Create lock file to the given path and filename.
* Returns the associated file descriptor, -1 on error.
* forks+execve as the child process closes a file descriptor referencing
* the file description of 'filepath'.
*/
-LTTNG_HIDDEN
int utils_create_lock_file(const char *filepath);
#endif /* COMMON_LOCKFILE_H */