summaryrefslogtreecommitdiffstats
path: root/contrib/ntp/include/ntp_machine.h
diff options
context:
space:
mode:
authorroberto <roberto@FreeBSD.org>2002-10-29 19:58:12 +0000
committerroberto <roberto@FreeBSD.org>2002-10-29 19:58:12 +0000
commita925fb398bce4939d6e5c35c6ffa80a63bdf3b7d (patch)
tree6e07f982fb077f5a01a8677cbbe3cf3fbc412a6e /contrib/ntp/include/ntp_machine.h
parent4db30046bd2cbd7599b5d60bd5f879972ac1f2b1 (diff)
parentf77146900e35a78aaabf5f88d47b7675304c8445 (diff)
downloadFreeBSD-src-a925fb398bce4939d6e5c35c6ffa80a63bdf3b7d.zip
FreeBSD-src-a925fb398bce4939d6e5c35c6ffa80a63bdf3b7d.tar.gz
This commit was generated by cvs2svn to compensate for changes in r106163,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/ntp/include/ntp_machine.h')
-rw-r--r--contrib/ntp/include/ntp_machine.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/contrib/ntp/include/ntp_machine.h b/contrib/ntp/include/ntp_machine.h
index d14f5c1..17026a7 100644
--- a/contrib/ntp/include/ntp_machine.h
+++ b/contrib/ntp/include/ntp_machine.h
@@ -434,6 +434,48 @@ struct servent *getservbyname P((char *name, char *type));
# endif
#endif /* NTP_SYSCALLS_STD */
+#ifdef MPE
+# include <sys/types.h>
+# include <netinet/in.h>
+# include <stdio.h>
+# include <time.h>
+
+/* missing functions that are easily renamed */
+
+# define _getch getchar
+
+/* special functions that require MPE-specific wrappers */
+
+# define bind __ntp_mpe_bind
+# define fcntl __ntp_mpe_fcntl
+
+/* standard macros missing from MPE include files */
+
+# define IN_CLASSD(i) ((((long)(i))&0xf0000000)==0xe0000000)
+# define IN_MULTICAST IN_CLASSD
+# define ITIMER_REAL 0
+# define MAXHOSTNAMELEN 64
+
+/* standard structures missing from MPE include files */
+
+struct itimerval {
+ struct timeval it_interval; /* timer interval */
+ struct timeval it_value; /* current value */
+};
+
+/* various declarations to make gcc stop complaining */
+
+extern int __filbuf(FILE *);
+extern int __flsbuf(int, FILE *);
+extern int gethostname(char *, int);
+extern unsigned long inet_addr(char *);
+extern char *strdup(const char *);
+
+/* miscellaneous NTP macros */
+
+# define HAVE_NO_NICE
+#endif /* MPE */
+
#ifdef HAVE_RTPRIO
# define HAVE_NO_NICE
#else
OpenPOWER on IntegriCloud