Skip to content

Commit

Permalink
Fix preprocessor directives
Browse files Browse the repository at this point in the history
  • Loading branch information
bazuchan authored and heiher committed Sep 11, 2024
1 parent 8a5f8fe commit ee4c850
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
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

0 comments on commit ee4c850

Please sign in to comment.