[v2,1/2] Add FreeBSD, DragonFly to syscall-compat.h
diff mbox series

Message ID 20200127200830.29347-1-alex_y_xu@yahoo.ca
State Superseded, archived
Headers show
Series
  • [v2,1/2] Add FreeBSD, DragonFly to syscall-compat.h
Related show

Commit Message

Alex Xu (Hello71 Jan. 27, 2020, 8:08 p.m. UTC
---
 include/urcu/syscall-compat.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Comments

Mathieu Desnoyers Jan. 30, 2020, 6:33 p.m. UTC | #1
Merged into liburcu master, thanks!

Mathieu

----- On Jan 27, 2020, at 3:08 PM, lttng-dev lttng-dev at lists.lttng.org wrote:

> ---
> include/urcu/syscall-compat.h | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/include/urcu/syscall-compat.h b/include/urcu/syscall-compat.h
> index fa63a7b..23b266e 100644
> --- a/include/urcu/syscall-compat.h
> +++ b/include/urcu/syscall-compat.h
> @@ -32,8 +32,9 @@
> #elif defined(__linux__) || defined(__GLIBC__)
> #include <syscall.h>
> 
> -#elif defined(__CYGWIN__) || defined(__APPLE__)
> -/* Don't include anything on Cygwin or MacOSX. */
> +#elif defined(__CYGWIN__) || defined(__APPLE__) || \
> +	defined(__FreeBSD__) || defined(__DragonFly__)
> +/* Don't include anything on these platforms. */
> 
> #else
> #error "Add platform support to urcu/syscall-compat.h"
> --
> 2.25.0
> 
> _______________________________________________
> lttng-dev mailing list
> lttng-dev at lists.lttng.org
> https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Patch
diff mbox series

diff --git a/include/urcu/syscall-compat.h b/include/urcu/syscall-compat.h
index fa63a7b..23b266e 100644
--- a/include/urcu/syscall-compat.h
+++ b/include/urcu/syscall-compat.h
@@ -32,8 +32,9 @@ 
 #elif defined(__linux__) || defined(__GLIBC__)
 #include <syscall.h>
 
-#elif defined(__CYGWIN__) || defined(__APPLE__)
-/* Don't include anything on Cygwin or MacOSX. */
+#elif defined(__CYGWIN__) || defined(__APPLE__) || \
+	defined(__FreeBSD__) || defined(__DragonFly__)
+/* Don't include anything on these platforms. */
 
 #else
 #error "Add platform support to urcu/syscall-compat.h"