Subject: Re: Commit to src/lib/libc/stdio/fparseln.c breaks foreign
To: sgimips NetBSD list <sgimips@mrynet.com>
From: Christian Limpach <chris@pin.lu>
List: tech-toolchain
Date: 05/11/2004 12:58:52
Hi,

> > Could you try to add a "reentrant.h" to src/tools/compat
> > which just contains the lines:
> > #define FLOCKFILE(fp)
> > #define FUNLOCKFILE(fp)
>
> Did this, and the tools are building fine now.   Danke.

This still breaks on a Linux host since besides reentrant.h, local.h is
newly included and it includes fileext.h which needs struct __sbuf to be
defined.
I'm using using the following fix for now in
lib/libc/stdio/{fgetln,fparseln}.c:
+#ifndef HAVE_NBTOOL_CONFIG_H
 #include "reentrant.h"
 #include "local.h"
+#else
+#define        FLOCKFILE(fp)
+#define        FUNLOCKFILE(fp)
+#endif

    christian