Ed,
Today's build on FreeBSD (10.1 amd64) is failing because of a comparison
of an int fd against unsigned FD_SETSIZE.
This patch reuses the existing __APPLE__ logic to disable the comparison
for __FreeBSD__
Tom
>From 8aca1fabe930aa7c0ae3f03d12857fb62a6b178a Mon Sep 17 00:00:00 2001
From: Tom <t...@bumblecow.com>
Date: Fri, 10 Apr 2015 21:40:13 -0500
Subject: [PATCH 1/2] FD_SETSIZE is unsigned on FreeBSD
---
source/Host/posix/ConnectionFileDescriptorPosix.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/Host/posix/ConnectionFileDescriptorPosix.cpp b/source/Host/posix/ConnectionFileDescriptorPosix.cpp
index 9946cb4..d862491 100644
--- a/source/Host/posix/ConnectionFileDescriptorPosix.cpp
+++ b/source/Host/posix/ConnectionFileDescriptorPosix.cpp
@@ -595,7 +595,7 @@ ConnectionFileDescriptor::BytesAvailable(uint32_t timeout_usec, Error *error_ptr
const bool have_pipe_fd = false;
#else
const bool have_pipe_fd = pipe_fd >= 0;
-#if !defined(__APPLE__)
+#if !defined(__APPLE__) && !defined(__FreeBSD__)
assert(handle < FD_SETSIZE);
if (have_pipe_fd)
assert(pipe_fd < FD_SETSIZE);
--
2.3.3
_______________________________________________
lldb-dev mailing list
lldb-dev@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev