mirror of
https://git.sr.ht/~thestr4ng3r/chiaki
synced 2025-08-21 05:53:12 -07:00
Fix CLI for FreeBSD
This commit is contained in:
parent
497b69dfd3
commit
6321f669cb
5 changed files with 29 additions and 2 deletions
|
@ -7,5 +7,10 @@ add_library(chiaki-cli-lib STATIC ${SOURCE})
|
|||
target_include_directories(chiaki-cli-lib PUBLIC "include")
|
||||
target_link_libraries(chiaki-cli-lib chiaki-lib)
|
||||
|
||||
if(CHIAKI_CLI_ARGP_STANDALONE)
|
||||
find_package(Argp REQUIRED)
|
||||
target_link_libraries(chiaki-cli-lib Argp::Argp)
|
||||
endif()
|
||||
|
||||
add_executable(chiaki-cli src/main.c)
|
||||
target_link_libraries(chiaki-cli chiaki-cli-lib)
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
#include <netdb.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
static char doc[] = "Send a PS4 discovery request.";
|
||||
|
||||
|
@ -168,4 +169,4 @@ CHIAKI_EXPORT int chiaki_cli_cmd_discover(ChiakiLog *log, int argc, char *argv[]
|
|||
sleep(1);
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue