nealrichardson commented on a change in pull request #9694:
URL: https://github.com/apache/arrow/pull/9694#discussion_r593786619



##########
File path: cpp/src/arrow/memory_pool.cc
##########
@@ -182,6 +182,12 @@ class SystemAllocator {
     if (!*out) {
       return Status::OutOfMemory("malloc of size ", size, " failed");
     }
+#elif defined(sun) || defined(__sun)
+#include <stdlib.h>
+    *out = reinterpret_cast<uint8_t*>(memalign(static_cast<size_t>(size), 
kAlignment));

Review comment:
       Good catch, thanks. I do not have a Solaris dev environment, but there 
is a service I can use to test R package building on Solaris, and this fixed 
the previous compile error on it. Because of all sorts of other issues, I 
haven't managed to get a full successful build yet (I'm up to 50% at the 
latest), so I haven't gotten to the point of seeing if the code actually works.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to