]> git.ipfire.org Git - thirdparty/curl.git/commit
autotools: recognize more Linux targets when setting `-D_GNU_SOURCE`
authorViktor Szakats <commit@vsz.me>
Mon, 2 Jun 2025 22:38:20 +0000 (00:38 +0200)
committerViktor Szakats <commit@vsz.me>
Tue, 3 Jun 2025 07:51:41 +0000 (09:51 +0200)
commit741748e34124e33da5357c0026cceb5a927cb036
treecebdfc752519c30e2f584d7340826a525135bc75
parentf6ab4c8b75bed890b63e28fb26b819bbe2bd2073
autotools: recognize more Linux targets when setting `-D_GNU_SOURCE`

To set `-D_GNU_SOURCE`.

Required to declare `accept4` on uclibc targets. `host_os` can have
the value `uclinux-uclibcgnueabi` in this case.

Fixing:
```
cf-socket.c: In function 'cf_tcp_accept_connect':
cf-socket.c:2141:18: error: implicit declaration of function 'accept4'; did you mean 'accept'? [-Werror=implicit-function-declaration]
 2141 |     s_accepted = accept4(ctx->sock, (struct sockaddr *) &add, &size,
```

Follow-up to 3d02872be7cfe6dcdef4b02321b47af19e1ce268 #16979

Reported-by: Kadambini Nema
Fixes #17512
Closes #17524
configure.ac