summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2023-04-23 17:21:06 -1000
committerKinseyMoore <48726349+KinseyMoore@users.noreply.github.com>2023-04-25 21:45:23 -0500
commit504b5924811e557120aa3e0ca9cec8454d07bdb7 (patch)
tree2cf930edf6451fac245e3f7eed7fce6e265d38ab
parenttestsuite/ntp: Add debugging support (diff)
downloadrtems-net-services-504b5924811e557120aa3e0ca9cec8454d07bdb7.tar.bz2
bsd/ntp: Include rtems-bsd-program.h for calls to exti
-rw-r--r--bsd/freebsd/contrib/ntp/ntpd/ntpd-opts.c3
-rw-r--r--bsd/freebsd/contrib/ntp/ntpd/ntpsim.c3
-rw-r--r--bsd/freebsd/contrib/ntp/sntp/libopts/ag-char-map.h3
-rw-r--r--bsd/freebsd/contrib/ntp/sntp/libopts/genshell.c3
-rw-r--r--bsd/freebsd/contrib/ntp/sntp/libopts/makeshell.c3
5 files changed, 15 insertions, 0 deletions
diff --git a/bsd/freebsd/contrib/ntp/ntpd/ntpd-opts.c b/bsd/freebsd/contrib/ntp/ntpd/ntpd-opts.c
index 95f22d4..801935c 100644
--- a/bsd/freebsd/contrib/ntp/ntpd/ntpd-opts.c
+++ b/bsd/freebsd/contrib/ntp/ntpd/ntpd-opts.c
@@ -73,6 +73,9 @@ extern FILE * option_usage_fp;
# define NULL 0
#endif
+#ifdef __rtems__
+#include <machine/rtems-bsd-program.h>
+#endif
/**
* static const strings for ntpd options
*/
diff --git a/bsd/freebsd/contrib/ntp/ntpd/ntpsim.c b/bsd/freebsd/contrib/ntp/ntpd/ntpsim.c
index 6f637d3..62595da 100644
--- a/bsd/freebsd/contrib/ntp/ntpd/ntpsim.c
+++ b/bsd/freebsd/contrib/ntp/ntpd/ntpsim.c
@@ -16,6 +16,9 @@
#include "ntpd.h"
#include "ntp_config.h"
+#ifdef __rtems__
+#invlude <machine/rtems-bsd-program.h>
+#endif
/* forward prototypes */
int determine_event_ordering(const Event *e1, const Event *e2);
int determine_recv_buf_ordering(const struct recvbuf *b1,
diff --git a/bsd/freebsd/contrib/ntp/sntp/libopts/ag-char-map.h b/bsd/freebsd/contrib/ntp/sntp/libopts/ag-char-map.h
index e905118..325ef41 100644
--- a/bsd/freebsd/contrib/ntp/sntp/libopts/ag-char-map.h
+++ b/bsd/freebsd/contrib/ntp/sntp/libopts/ag-char-map.h
@@ -29,6 +29,9 @@
#ifndef AG_CHAR_MAP_H_GUARD
#define AG_CHAR_MAP_H_GUARD 1
+#ifdef __rtems__
+#include <machine/rtems-bsd-program.h>
+#endif
#ifdef HAVE_CONFIG_H
# if defined(HAVE_INTTYPES_H)
# include <inttypes.h>
diff --git a/bsd/freebsd/contrib/ntp/sntp/libopts/genshell.c b/bsd/freebsd/contrib/ntp/sntp/libopts/genshell.c
index 0f05b3e..b4a335f 100644
--- a/bsd/freebsd/contrib/ntp/sntp/libopts/genshell.c
+++ b/bsd/freebsd/contrib/ntp/sntp/libopts/genshell.c
@@ -48,6 +48,9 @@
#include <stdio.h>
#include <stdlib.h>
+#ifdef __rtems__
+#include <machine/rtems-bsd-program.h>
+#endif
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/bsd/freebsd/contrib/ntp/sntp/libopts/makeshell.c b/bsd/freebsd/contrib/ntp/sntp/libopts/makeshell.c
index fbe8e17..ebb3701 100644
--- a/bsd/freebsd/contrib/ntp/sntp/libopts/makeshell.c
+++ b/bsd/freebsd/contrib/ntp/sntp/libopts/makeshell.c
@@ -30,6 +30,9 @@
* 13aa749a5b0a454917a944ed8fffc530b784f5ead522b1aacaf4ec8aa55a6239 COPYING.mbsd
*/
+#ifdef __rtems__
+#include <machine/rtems-bsd-program.h>
+#endif
static inline unsigned char to_uchar (char ch) { return ch; }
#define UPPER(_c) (toupper(to_uchar(_c)))