aap2sendfile: Define _POSIX_C_SOURCE before including anything else

Otherwise there may be a re-definition in recursively included header
files.

Signed-off-by: Felix Walter <felix.walter@d3tn.com>
This commit is contained in:
Felix Walter 2026-04-21 10:57:44 +02:00
parent 3349040b3a
commit df5775c07b

View file

@ -1,7 +1,8 @@
// SPDX-License-Identifier: BSD-3-Clause OR Apache-2.0
#define _POSIX_C_SOURCE 200809L
#include "aap2/aap2_client.h"
#define _POSIX_C_SOURCE 200809L
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>