Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix preprocessor directives checking TARGET_OS_TV #160

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/misc/hev-exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@

#include "hev-exec.h"

#ifndef TARGET_OS_TV
#if TARGET_OS_TV
void
hev_exec_run (const char *script_path, const char *tun_name, int wait)
{
}
#else
static void
signal_handler (int signum)
{
Expand Down Expand Up @@ -51,9 +56,4 @@ hev_exec_run (const char *script_path, const char *tun_name, int wait)
LOG_E ("exec %s %s", script_path, tun_name);
exit (-1);
}
#else
void
hev_exec_run (const char *script_path, const char *tun_name, int wait)
{
}
#endif
2 changes: 1 addition & 1 deletion src/misc/hev-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ run_as_daemon (const char *pid_file)

#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#ifndef TARGET_OS_TV
#if !(TARGET_OS_TV)
if (daemon (0, 0)) {
/* ignore return value */
}
Expand Down