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:
Gregory Nutt 2019-06-03 08:12:20 -06:00
parent a2def2a4d1
commit e4069ebe5e
2 changed files with 5 additions and 5 deletions

View File

@ -63,11 +63,9 @@
struct sigwork_s struct sigwork_s
{ {
#ifdef CONFIG_SIG_EVTHREAD
struct work_s work; /* Work queue structure */ struct work_s work; /* Work queue structure */
union sigval value; /* Data passed with notification */ union sigval value; /* Data passed with notification */
sigev_notify_function_t func; /* Notification function */ 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 * event - The instance of struct sigevent that describes how to signal
* the client. * the client.
* code - Source: SI_USER, SI_QUEUE, SI_TIMER, SI_ASYNCIO, or SI_MESGQ * 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: * Returned Value:
* This is an internal OS interface and should not be used by applications. * This is an internal OS interface and should not be used by applications.

View File

@ -92,7 +92,7 @@ static void nxsig_notification_worker(FAR void *arg)
* Name: nxsig_notification * Name: nxsig_notification
* *
* Description: * 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. * base on the sigev_notify field.
* *
* Input Parameters: * 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 * event - The instance of struct sigevent that describes how to signal
* the client. * the client.
* code - Source: SI_USER, SI_QUEUE, SI_TIMER, SI_ASYNCIO, or SI_MESGQ * 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: * Returned Value:
* This is an internal OS interface and should not be used by applications. * This is an internal OS interface and should not be used by applications.