add extern declaration for nanosleep in lib.c

This commit is contained in:
2025-03-11 15:30:43 +01:00
parent d9307c04ed
commit d5a8ef6250
+1
View File
@@ -2,6 +2,7 @@
#include "rds.h" #include "rds.h"
#include <time.h> #include <time.h>
extern int nanosleep(const struct timespec *req, struct timespec *rem);
/* millisecond sleep */ /* millisecond sleep */
void msleep(unsigned long ms) { void msleep(unsigned long ms) {
struct timespec ts; struct timespec ts;