mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 12:33:27 +08:00
Make declaration of _TCB idempotent
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4156 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -379,7 +379,12 @@ EXTERN int close_blockdriver(FAR struct inode *inode);
|
||||
/* Used by the OS to clone stdin, stdout, stderr */
|
||||
|
||||
#if CONFIG_NFILE_STREAMS > 0
|
||||
|
||||
#ifndef __TCB_DEFINED__
|
||||
typedef struct _TCB _TCB;
|
||||
#define __TCB_DEFINED__
|
||||
#endif
|
||||
|
||||
EXTERN FAR struct file_struct *fs_fdopen(int fd, int oflags, FAR _TCB *tcb);
|
||||
#endif
|
||||
|
||||
|
||||
@@ -294,7 +294,15 @@ struct _TCB
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
/* Certain other header files may also define this time to avoid circular header
|
||||
* file inclusion issues.
|
||||
*/
|
||||
|
||||
#ifndef __TCB_DEFINED__
|
||||
typedef struct _TCB _TCB;
|
||||
#define __TCB_DEFINED__
|
||||
#endif
|
||||
|
||||
/* This is the callback type used by sched_foreach() */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user