[libcxx-commits] [PATCH] D82810: [libc++abi] Remove unused include of <sys/types.h>

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jun 29 14:46:42 PDT 2020

ldionne created this revision.
Herald added subscribers: libcxx-commits, dexonsmith, jkorous.
Herald added a project: libc++abi.
Herald added a reviewer: libc++abi.

I ran into an error while trying to build libc++abi for a platform that
doesn't have <sys/types.h>. I couldn't find what <sys/types.h> was used
for in the header, so I think it's fine to remove it.

  rG LLVM Github Monorepo



Index: libcxxabi/src/cxa_guard_impl.h
--- libcxxabi/src/cxa_guard_impl.h
+++ libcxxabi/src/cxa_guard_impl.h
@@ -40,7 +40,6 @@
 #include "__cxxabi_config.h"
 #include "include/atomic_support.h"
 #include <unistd.h>
-#include <sys/types.h>
 #if defined(__has_include)
 # if __has_include(<sys/syscall.h>)
 #   include <sys/syscall.h>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82810.274244.patch
Type: text/x-patch
Size: 400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20200629/aa6b3722/attachment.bin>

More information about the libcxx-commits mailing list