Skip to content

Commit

Permalink
library: don't include unistd on windows
Browse files Browse the repository at this point in the history
oops
  • Loading branch information
Adamcake committed Dec 11, 2024
1 parent 7e80cbe commit 7bfe60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library/gl.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>

// -D BOLT_LIBRARY_VERBOSE=1
#if defined(VERBOSE)
#if defined(WIN32)
#define gettid() (unsigned long)GetCurrentThreadId()
#else
#include <unistd.h>
#include <sys/syscall.h>
#define gettid() (unsigned long)syscall(SYS_gettid)
#endif
Expand Down

0 comments on commit 7bfe60a

Please sign in to comment.