summaryrefslogtreecommitdiff
path: root/cross/xtensa-esp32-elf-gcc/patches/patch-newlib_libc_posix_regcomp.c
blob: 161e3449061919ee2274ffbec4fd2b2bdb483d30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$NetBSD: patch-newlib_libc_posix_regcomp.c,v 1.1 2022/04/14 00:50:00 tnn Exp $

work around a problem where _POSIX2_RE_DUP_MAX is undefined

--- newlib/libc/posix/regcomp.c.orig	2022-03-31 06:25:20.000000000 +0000
+++ newlib/libc/posix/regcomp.c
@@ -39,6 +39,7 @@
 static char sccsid[] = "@(#)regcomp.c	8.5 (Berkeley) 3/20/94";
 #endif /* LIBC_SCCS and not lint */
 #include <sys/cdefs.h>
+#include "../include/limits.h"
 
 #include <sys/types.h>
 #include <stdio.h>