Skip to content

Commit 0d48996

Browse files
nickdesaulniersGroverkss
authored andcommitted
[libc] fix lfind old hdrgen (llvm#115760)
Fixes: llvm#114692
1 parent 73e3c92 commit 0d48996

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libc/config/linux/api.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def SetJmpAPI : PublicAPI<"setjmp.h"> {
268268
}
269269

270270
def SearchAPI : PublicAPI<"search.h"> {
271-
let Types = ["ACTION", "ENTRY", "struct hsearch_data"];
271+
let Types = ["ACTION", "ENTRY", "struct hsearch_data", "__lsearchcompare_t"];
272272
}
273273

274274
def SysStatvfsAPI : PublicAPI<"sys/statvfs.h"> {

libc/spec/posix.td

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,8 @@ def POSIX : StandardSpec<"POSIX"> {
15821582
[], // Macros
15831583
[
15841584
ActionType,
1585-
EntryType
1585+
EntryType,
1586+
LSearchCompareT,
15861587
], // Types
15871588
[], // Enumerations
15881589
[

0 commit comments

Comments
 (0)