Error: 'CLOCK_REALTIME' undeclared

Please provide the following info (tick the boxes after creating this topic):
Software Version
DRIVE OS 6.0.10.0
[*] DRIVE OS 6.0.8.1
DRIVE OS 6.0.6
DRIVE OS 6.0.5
DRIVE OS 6.0.4 (rev. 1)
DRIVE OS 6.0.4 SDK
other

Target Operating System
Linux
QNX
other

Hardware Platform
DRIVE AGX Orin Developer Kit (940-63710-0010-300)
DRIVE AGX Orin Developer Kit (940-63710-0010-200)
DRIVE AGX Orin Developer Kit (940-63710-0010-100)
DRIVE AGX Orin Developer Kit (940-63710-0010-D00)
DRIVE AGX Orin Developer Kit (940-63710-0010-C00)
DRIVE AGX Orin Developer Kit (not sure its number)
other

SDK Manager Version
2.1.0
other

Host Machine Version
native Ubuntu Linux 20.04 Host installed with SDK Manager
native Ubuntu Linux 20.04 Host installed with DRIVE OS Docker Containers
native Ubuntu Linux 18.04 Host installed with DRIVE OS Docker Containers
other

Issue Description
<Please provide details about your query/application pipeline/usecase/pictures here >

Error String
< Please provide just the error messages here >

Logs
Provide logs in text box instead of image

Please paste the complete application log here. If there are multiple logs, please use multiple text box

We tried to compile the code from the repository: GitHub - HesaiTechnology/HesaiLidar_DriveWorks_Plugin, but encountered the following error during cross-compilation. We noticed that the same code is used in DW without any errors. We also tried adding various header files, but the error persists. Could you please help us figure out which header file is missing? Thank you very much.

Dear @deng.shigang,
I see DW 5.16 in error logs. which release are you using? DRIVE OS 6.0.8.1 comes with DW 5.14.
Is time.h header included?

DRIVE OS 6.0.9.1

yes, time.h header included。


#include <arpa/inet.h>

#include <errno.h>

#include <fcntl.h>

#include <netinet/in.h>

#include <pthread.h>

#include <setjmp.h>

#include <signal.h>

#include <stdarg.h>

#include <stdio.h>

#include <stdlib.h>

#include <string.h>

#include <strings.h>

#include <sys/ipc.h>

#include <sys/msg.h>

#include <sys/socket.h>

#include <sys/types.h>

#include <sys/time.h>

#include <syslog.h>

#include <unistd.h>

#include <time.h>

#include "util.h"

This is not a Devzone release. Do you have access to NVONLINE?

We do not have the authorization for NVONLINE. We also found this issue in the DriveWork 5.20 version.