axel-download-accelerator / axel

Lightweight CLI download accelerator
GNU General Public License v2.0
3.01k stars 266 forks source link

Fix build on FreeBSD. #443

Closed yonas closed 2 months ago

yonas commented 3 months ago
$ ./configure ; make
...
make  all-recursive
Making all in po
  CC       src/axel-abuf.o
In file included from src/abuf.c:46:
src/axel.h:104:19: error: conflicting types for 'if_t'; have 'message_t'
  104 | typedef message_t if_t;
      |                   ^~~~
In file included from src/axel.h:69:
/usr/include/net/if.h:667:23: note: previous declaration of 'if_t' with type 'if_t' {aka 'struct ifnet *'}
  667 | typedef struct ifnet *if_t;
      |                       ^~~~
*** Error code 1

Stop.
make[2]: stopped in /memfs/axel-2.17.14
*** Error code 1

Stop.
make[1]: stopped in /memfs/axel-2.17.14
*** Error code 1

Stop.
make: stopped in /memfs/axel-2.17.14

OS: FreeBSD 14

ismaell commented 2 months ago

Hi. Why the removal of UINT64_C?

yonas commented 2 months ago

@ismaell That part I got from https://cgit.freebsd.org/ports/tree/ftp/axel/files/patch-src_axel.c . Not sure why either.