[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wget2 | Draft: Small fixes (!505)
From: |
Avinash Sonawane (@rootkea) |
Subject: |
Re: wget2 | Draft: Small fixes (!505) |
Date: |
Fri, 29 Jul 2022 14:19:39 +0000 |
Avinash Sonawane commented on a discussion on examples/batch_loader.c:
https://gitlab.com/gnuwget/wget2/-/merge_requests/505#note_1044895998
> *
> */
>
> +#ifndef _WIN32
I am still seeing this error:
```
batch_loader.c:126:19: error: variable has incomplete type 'struct sigaction'
struct sigaction sig_action = { .sa_handler = SIG_IGN };
^
batch_loader.c:126:9: note: forward declaration of 'struct sigaction'
struct sigaction sig_action = { .sa_handler = SIG_IGN };
^
batch_loader.c:127:2: warning: implicit declaration of function 'sigaction' is
invalid in C99 [-Wimplicit-function-declaration]
sigaction(SIGPIPE, &sig_action, NULL); // this forces socket error
return
^
```
Not exactly sure how to fix it without explicitly defining `_POSIX_C_SOURCE`...
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/-/merge_requests/505#note_1044895998
You're receiving this email because of your account on gitlab.com.
- Re: wget2 | Draft: Small fixes (!505),
Avinash Sonawane (@rootkea) <=