[PATCH 11/18] ptpd: Rename main function for RTEMS

Gabriel Moyano gabriel.moyano at dlr.de
Wed Apr 12 13:54:15 UTC 2023


From: Chris Johns <chrisj at rtems.org>

---
 freebsd/contrib/ptpd/src/ptpd.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/freebsd/contrib/ptpd/src/ptpd.c b/freebsd/contrib/ptpd/src/ptpd.c
index 3462dd21..f1026f3b 100644
--- a/freebsd/contrib/ptpd/src/ptpd.c
+++ b/freebsd/contrib/ptpd/src/ptpd.c
@@ -75,7 +75,11 @@ PtpClock *G_ptpClock = NULL;
 TimingDomain timingDomain;
 
 int
+#ifndef __rtems__
 main(int argc, char **argv)
+#else /* __rtems__ */
+ptpd_main(int argc, char **argv)
+#endif /* __rtems__ */
 {
 	PtpClock *ptpClock;
 	Integer16 ret;
-- 
2.25.1



More information about the devel mailing list