include/nuttx/signal.h: Fix a C89 compliance problem that cause the ez80 build to fail. Empty structure and unions are not accepted by the compiler.
This commit is contained in:
parent
a2def2a4d1
commit
e4069ebe5e
@ -63,11 +63,9 @@
|
||||
|
||||
struct sigwork_s
|
||||
{
|
||||
#ifdef CONFIG_SIG_EVTHREAD
|
||||
struct work_s work; /* Work queue structure */
|
||||
union sigval value; /* Data passed with notification */
|
||||
sigev_notify_function_t func; /* Notification function */
|
||||
#endif
|
||||
};
|
||||
|
||||
/****************************************************************************
|
||||
@ -469,7 +467,8 @@ int nxsig_usleep(useconds_t usec);
|
||||
* event - The instance of struct sigevent that describes how to signal
|
||||
* the client.
|
||||
* code - Source: SI_USER, SI_QUEUE, SI_TIMER, SI_ASYNCIO, or SI_MESGQ
|
||||
* work - The work structure to queue
|
||||
* work - The work structure to queue. Must be non-NULL if
|
||||
* event->sigev_notify == SIGEV_THREAD
|
||||
*
|
||||
* Returned Value:
|
||||
* This is an internal OS interface and should not be used by applications.
|
||||
|
@ -92,7 +92,7 @@ static void nxsig_notification_worker(FAR void *arg)
|
||||
* Name: nxsig_notification
|
||||
*
|
||||
* Description:
|
||||
* Notify a client an event via either a singal or function call
|
||||
* Notify a client an event via either a signal or function call
|
||||
* base on the sigev_notify field.
|
||||
*
|
||||
* Input Parameters:
|
||||
@ -100,7 +100,8 @@ static void nxsig_notification_worker(FAR void *arg)
|
||||
* event - The instance of struct sigevent that describes how to signal
|
||||
* the client.
|
||||
* code - Source: SI_USER, SI_QUEUE, SI_TIMER, SI_ASYNCIO, or SI_MESGQ
|
||||
* work - The work structure to queue
|
||||
* work - The work structure to queue. Must be non-NULL if
|
||||
* event->sigev_notify == SIGEV_THREAD
|
||||
*
|
||||
* Returned Value:
|
||||
* This is an internal OS interface and should not be used by applications.
|
||||
|
Loading…
Reference in New Issue
Block a user