mirror of
https://github.com/debauchee/barrier.git
synced 2026-11-01 13:04:40 +08:00
Better fixes for compiling on FreeBSD and OpenBSD.
This commit is contained in:
@@ -43,6 +43,10 @@
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#if !HAVE_INET_ATON
|
||||
# include <stdio.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_ALLOCA_H
|
||||
# define freea(x_)
|
||||
#else
|
||||
|
||||
@@ -67,12 +67,6 @@
|
||||
#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