Fix build error when building from a tarball instead of a git clone

This commit is contained in:
Guillaume Meunier
2023-07-29 17:50:51 +02:00
parent cef644e5da
commit 8de6b2283d
4 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -22,6 +22,7 @@
#include <unistd.h>
#include "pidfd.h"
#include "version.h"
#include "avahi_publisher.h"
#include "hostname.h"
@@ -106,7 +107,7 @@ int create_listen_socket()
std::cerr << "Could not bind socket to path " << sock_file << ": " << strerror(errno) << ". Is the service running already?" << std::endl;
if (errno == EADDRINUSE)
{
std::cerr << "If wivrn is not running, delete " << sock_file << " before starting a new instance" << std::endl;
std::cerr << "If WiVRn is not running, delete " << sock_file << " before starting a new instance" << std::endl;
}
close(fd);
throw std::system_error(errno, std::system_category());
@@ -185,6 +186,7 @@ void waitpid_verbose(pid_t pid, const std::string& name)
int main(int argc, char * argv[])
{
std::cerr << "WiVRn " << git_version << " starting" << std::endl;
create_listen_socket();
u_trace_marker_init();