Skip to content

Commit 2087ca2

Browse files
author
Sriya Pratipati
committed
fixed cmake files and includes
1 parent 2408a8a commit 2087ca2

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

libc/src/__support/HashTable/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ if (NOT ${getrandom_index} EQUAL -1)
1515
message(STATUS "Using getrandom for hashtable randomness")
1616
set(randomness_compile_flags -DLIBC_HASHTABLE_USE_GETRANDOM)
1717
set(randomness_extra_depends
18-
libc.src.sys.random.getrandom libc.src.errno.errno)
18+
libc.src.__support.OSUtil.linux.getrandom
19+
libc.hdr.errno_macros)
1920
endif()
2021

2122

libc/src/__support/HashTable/randomness.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
#include "src/__support/macros/attributes.h"
1515
#include "src/__support/macros/config.h"
1616
#if defined(LIBC_HASHTABLE_USE_GETRANDOM)
17+
#include "hdr/errno_macros.h"
1718
#include "src/__support/OSUtil/linux/getrandom.h"
18-
#include "src/__support/libc_errno.h"
1919
#endif
2020

2121
namespace LIBC_NAMESPACE_DECL {

libc/src/__support/OSUtil/linux/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ add_header_library(
2929
HDRS
3030
getrandom.h
3131
DEPENDS
32-
libc.src.__support.OSUtil.linux.syscall
32+
libc.src.__support.OSUtil.osutil
3333
libc.src.__support.common
3434
libc.src.__support.error_or
35-
libc.src.__support.macros.config.h
35+
libc.src.__support.macros.config
3636
libc.hdr.types.ssize_t
3737
libc.include.sys_syscall
3838
)

0 commit comments

Comments
 (0)