[libcxx-commits] [libcxxabi] c2547f1 - [libc++abi] Remove unused include of <sys/types.h>

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jun 30 09:13:34 PDT 2020


Author: Louis Dionne
Date: 2020-06-30T12:13:28-04:00
New Revision: c2547f1554d3f1a1af882d594529053699b14839

URL: https://github.com/llvm/llvm-project/commit/c2547f1554d3f1a1af882d594529053699b14839
DIFF: https://github.com/llvm/llvm-project/commit/c2547f1554d3f1a1af882d594529053699b14839.diff

LOG: [libc++abi] Remove unused include of <sys/types.h>

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.

Differential Revision: https://reviews.llvm.org/D82810

Added: 
    

Modified: 
    libcxxabi/src/cxa_guard_impl.h

Removed: 
    


################################################################################
diff  --git a/libcxxabi/src/cxa_guard_impl.h b/libcxxabi/src/cxa_guard_impl.h
index dfb26cf687e4..f6a698e23acb 100644
--- a/libcxxabi/src/cxa_guard_impl.h
+++ b/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>


        


More information about the libcxx-commits mailing list