mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 12:33:33 +08:00
FTPD daemon and example now build without errors
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4371 7fd9a85b-ad96-42d3-883c-3090e2eb8679
This commit is contained in:
@@ -71,7 +71,13 @@ struct semholder_s
|
||||
void *holder; /* Holder TCB (actual type is _TCB) */
|
||||
int16_t counts; /* Number of counts owned by this holder */
|
||||
};
|
||||
|
||||
#if CONFIG_SEM_PREALLOCHOLDERS > 0
|
||||
# define SEMHOLDER_INITIALIZER {NULL, NULL, 0}
|
||||
#else
|
||||
# define SEMHOLDER_INITIALIZER {NULL, 0}
|
||||
#endif
|
||||
#endif /* CONFIG_PRIORITY_INHERITANCE */
|
||||
|
||||
/* This is the generic semaphore structure. */
|
||||
|
||||
@@ -85,6 +91,12 @@ struct sem_s
|
||||
};
|
||||
typedef struct sem_s sem_t;
|
||||
|
||||
#ifdef CONFIG_PRIORITY_INHERITANCE
|
||||
# define SEM_INITIALIZER(c) {(c), SEMHOLDER_INITIALIZER}
|
||||
#else
|
||||
# define SEM_INITIALIZER(c) {(c)}
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Public Variables
|
||||
****************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user