# --- T2-COPYRIGHT-BEGIN --- # t2/architecture/microblaze/package/*/compile.patch.dietlibc # Copyright (C) 2004 - 2026 The T2 SDE Project # Copyright (C) 1998 - 2004 ROCK Linux Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- Dietlibc already has the fopen_unlocked functions. - Rene Rebe --- ./libiberty/regex.c~ Fri Nov 16 22:54:17 2001 +++ ./libiberty/regex.c Sun Dec 29 05:39:31 2002 @@ -302,7 +302,7 @@ /* Integer type for pointers. */ # if !defined _LIBC && !defined HAVE_UINTPTR_T -typedef unsigned long int uintptr_t; +/*typedef unsigned long int uintptr_t;*/ # endif /* Should we use malloc or alloca? If REGEX_MALLOC is not defined, we --- gcc-4.0.2/libiberty/fopen_unlocked.c.vanilla 2005-10-11 19:52:08.000000000 +0200 +++ gcc-4.0.2/libiberty/fopen_unlocked.c 2005-10-11 19:52:44.000000000 +0200 @@ -104,6 +104,8 @@ unlock_1 (stderr); } +#ifndef __dietlibc__ + FILE * fopen_unlocked (path, mode) const char *path; @@ -134,3 +136,5 @@ unlock_1 (fp); return fp; } + +#endif