Skip to content

Commit

Permalink
Fix freebsd buid?
Browse files Browse the repository at this point in the history
  • Loading branch information
Christer Ekholm committed Jan 18, 2024
1 parent 6ce8548 commit f6f1535
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/option_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -831,11 +831,17 @@ int option_print(void)
#endif
}

#ifdef CAG_NO_FILE
typedef void FILE_CTX;
#else
typedef FILE FILE_CTX;
#endif

int option_printer(void)
{
char buf[255];
const char *expected;
void *test_file;
FILE_CTX *test_file;

expected = " -s Simple flag\n"
" -a Another simple flag\n"
Expand Down Expand Up @@ -879,7 +885,7 @@ int option_error_print_short(void)
int status;
char buf[255];
const char *expected;
void *test_file;
FILE_CTX *test_file;

expected = "Unknown option 'u' in '-abu'.\n";

Expand Down Expand Up @@ -935,7 +941,7 @@ int option_error_print_long(void)
int status;
char buf[255];
const char *expected;
void *test_file;
FILE_CTX *test_file;

expected = "Unknown option '--unknown'.\n";

Expand Down

0 comments on commit f6f1535

Please sign in to comment.