mosquitto icon indicating copy to clipboard operation
mosquitto copied to clipboard

Fix config.h to avoid conflicting _POSIX_C_SOURCE

Open Lapshin opened this issue 8 months ago • 0 comments

When _DEFAULT_SOURCE is defined, it is unnecessary to define _POSIX_C_SOURCE explicitly, as libc implicitly sets it (typically to 200809L). Explicitly defining _POSIX_C_SOURCE can lead to compatibility issues on systems where libc does not default to 200809L

This change avoids redundant or conflicting macro definitions for better portability.

You can read more details here https://man7.org/linux/man-pages/man7/feature_test_macros.7.html

Lapshin avatar May 01 '25 13:05 Lapshin