Skip to content

Commit 1b1d7ba

Browse files
committed
native_midi_linux_alsa.c: define _POSIX_C_SOURCE and _GNU_SOURCE
.. if not already defined Fixes #668
1 parent cadfafb commit 1b1d7ba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/codecs/native_midi/native_midi_linux_alsa.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@
2222
#include <SDL3/SDL_platform.h>
2323
#ifdef SDL_PLATFORM_LINUX
2424

25+
#ifndef _POSIX_C_SOURCE
26+
#define _POSIX_C_SOURCE 200809L
27+
#endif
28+
29+
#ifndef _GNU_SOURCE
30+
#define _GNU_SOURCE 1
31+
#endif
32+
2533
#include <SDL3/SDL_hints.h>
2634
#include <SDL3/SDL_atomic.h>
2735

0 commit comments

Comments
 (0)