Skip to content

Commit 0980f71

Browse files
[libc][errno] Remove previously added errno numbers (llvm#92163)
Introduced in llvm#91150. Not needed anymore as llvm#92041 fixed the root cause. `ENAMETOOLONG` and `EOVERFLOW` are well defined in `<linux/errno.h>`. Post mortem: Due to the previously missing inclusion of `<linux/errno.h>` (fixed with llvm#92041), I misinterpreted an undefined macro issue during the development of llvm#91150 as being caused by a missing definition rather than by the missing inclusion of the linux header. I realized too late that `ENAMETOOLONG` and `EOVERFLOW` were correctly defined in `<linux/errno.h>` and that it was my missing inclusion that caused the problem.
1 parent 24180ea commit 0980f71

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

libc/include/llvm-libc-macros/generic-error-number-macros.h

-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,5 @@
4343
#define EPIPE 32
4444
#define EDOM 33
4545
#define ERANGE 34
46-
#define ENAMETOOLONG 36
47-
#define EOVERFLOW 75
4846

4947
#endif // LLVM_LIBC_MACROS_GENERIC_ERROR_NUMBER_MACROS_H

0 commit comments

Comments
 (0)