Skip to content

Commit

Permalink
Fix syscall() not being defined when using musl
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed May 13, 2023
1 parent 70e961a commit 7497c47
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/bindings/fluid_rtkit.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,13 @@
SOFTWARE.
***/

#include "fluid_sys.h"

#ifdef DBUS_SUPPORT

#include "fluid_rtkit.h"


#if defined(__linux__) || defined(__APPLE__) || defined(__FreeBSD__) || defined(__DragonFly__)

#ifndef _GNU_SOURCE
// required for syscall()
#define _GNU_SOURCE

#endif

#include <sys/syscall.h>
Expand All @@ -46,6 +41,10 @@
#include <pthread_np.h>
#endif

#include "fluid_sys.h"
#include "fluid_rtkit.h"


static pid_t _gettid(void)
{
#if defined(__FreeBSD__) || defined(__DragonFly__)
Expand Down

0 comments on commit 7497c47

Please sign in to comment.