signal: fix compile break in c++

nuttx.rel: In function `__metal_sleep_usec':
nuttx/include/metal/system/nuttx/sleep.h:27: undefined reference to `nxsig_usleep(unsigned int)'
collect2: error: ld returned 1 exit status

Change-Id: I9dd2ed0a72d144bb152dc3753e7f9a6695dfb2d4
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu 2020-11-27 15:39:10 +08:00 committed by Abdelatif Guettouche
parent b83ae99456
commit f508d80c3d

View File

@ -54,6 +54,11 @@ struct sigwork_s
sigev_notify_function_t func; /* Notification function */
};
#ifdef __cplusplus
extern "C"
{
#endif
/****************************************************************************
* Public Function Prototypes
****************************************************************************/
@ -556,4 +561,8 @@ void nxsig_cancel_notification(FAR struct sigwork_s *work);
#define nxsig_cancel_notification(work) (void)(work)
#endif
#ifdef __cplusplus
}
#endif
#endif /* __INCLUDE_NUTTX_SIGNAL_H */