[rtems commit] kern_ntptime.c: Add define in order to remove warning

Sebastian Huber sebh at rtems.org
Mon May 23 07:04:27 UTC 2022


Module:    rtems
Branch:    master
Commit:    b304603b62e3c6d579bcad5ab6bd45b455cfa39f
Changeset: http://git.rtems.org/rtems/commit/?id=b304603b62e3c6d579bcad5ab6bd45b455cfa39f

Author:    Gabriel Moyano <gabriel.moyano at dlr.de>
Date:      Fri May 20 11:30:00 2022 +0200

kern_ntptime.c: Add define in order to remove warning

Update #2349.

---

 cpukit/score/src/kern_ntptime.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cpukit/score/src/kern_ntptime.c b/cpukit/score/src/kern_ntptime.c
index da6b425064..c1b4013e9b 100644
--- a/cpukit/score/src/kern_ntptime.c
+++ b/cpukit/score/src/kern_ntptime.c
@@ -58,6 +58,9 @@ __FBSDID("$FreeBSD$");
 #include <sys/time.h>
 #include <sys/timex.h>
 #include <sys/timetc.h>
+#ifdef __rtems__
+#define	_KERNEL
+#endif /* __rtems__ */
 #include <sys/timepps.h>
 #ifndef __rtems__
 #include <sys/syscallsubr.h>



More information about the vc mailing list