2003-09-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>

* src/sync.c: Don't undef __STRICT_ANSI__.
	Use struct _reent (struct reent doesn't exist)
This commit is contained in:
Ralf Corsepius
2003-09-13 03:47:05 +00:00
parent 7ce9bacd6a
commit 65fd5ae089
2 changed files with 6 additions and 5 deletions

View File

@@ -1,3 +1,8 @@
2003-09-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/sync.c: Don't undef __STRICT_ANSI__.
Use struct _reent (struct reent doesn't exist)
2003-09-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
PR 486/rtems

View File

@@ -21,10 +21,6 @@
#include "config.h"
#endif
/* this is needed to get the fileno() prototype */
#if defined(__STRICT_ANSI__)
#undef __STRICT_ANSI__
#endif
#include <unistd.h>
#include <stdio.h>
@@ -50,7 +46,7 @@ static void sync_wrapper(FILE *f)
/* iterate over all FILE *'s for this thread */
static void sync_per_thread(Thread_Control *t)
{
struct reent *current_reent;
struct _reent *current_reent;
/*
* The sync_wrapper() function will operate on the current thread's