mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-27 08:40:41 +08:00
Fixes for FreeBSD.
This commit is contained in:
@@ -67,6 +67,12 @@
|
||||
#define __FP__
|
||||
#endif
|
||||
|
||||
// Need this on FreeBSD to get nanosleep. We can't define this on, say,
|
||||
// Linux because that unconditionally defines it.
|
||||
#if defined(__FreeBSD__)
|
||||
#define _POSIX_VERSION 199506L
|
||||
#endif
|
||||
|
||||
// define NULL
|
||||
#ifndef NULL
|
||||
#define NULL 0
|
||||
|
||||
Reference in New Issue
Block a user