ka9q / ka9q-radio

Multichannel SDR based on fast convolution and IP multicasting
GNU General Public License v3.0
177 stars 42 forks source link

Add DEFAULT_SOURCE Define #37

Closed ghost closed 1 year ago

ghost commented 1 year ago

Without this define on Linux, the macros like NI_MAXHOST didn't get defined in multicast.c

Linux 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux gcc (Ubuntu 11.3.0-1ubuntu1~22.04) 11.3.0

Distributor ID: Ubuntu Description: Ubuntu 22.04.2 LTS Release: 22.04 Codename: jammy

VS Code Version 1.76.0

ghost commented 1 year ago

Also

define _GNU_SOURCE 1

Works, which is what is commonly used in your other files.

ghost commented 1 year ago

Added:

Same with set_xcvr.c file, as useconds_t was left undefined without it

ghost commented 1 year ago

All this is probably redundant as the Makefile's have the define embedded.

ghost commented 1 year ago

I'm going to close this, as it is really redundant to your definition in the Makefile