summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Lemon <source@isc.org>1998-06-25 18:34:47 +0000
committerTed Lemon <source@isc.org>1998-06-25 18:34:47 +0000
commit85858f227779b25f3b88f0c2272b529c49117ac9 (patch)
tree9975978e753188d5084d9a8df30b196dd3c62a31
parentf41671a76a592b0b6456c9615a077313f3241bc7 (diff)
downloadisc-dhcp-85858f227779b25f3b88f0c2272b529c49117ac9.tar.gz
Rhapsody support
-rw-r--r--Makefile.conf8
-rwxr-xr-xconfigure2
-rw-r--r--includes/osdep.h4
-rw-r--r--relay/dhcrelay.c8
4 files changed, 21 insertions, 1 deletions
diff --git a/Makefile.conf b/Makefile.conf
index bb2d3c0a..df041808 100644
--- a/Makefile.conf
+++ b/Makefile.conf
@@ -145,6 +145,14 @@ VARDB = /var/db
#SCRIPT=freebsd
##--freebsd--
+## Rhapsody
+##--rhapsody--
+#CF = cf/rhapsody.h
+#COPTS = -Wall -Wno-unused -Wno-implicit -Wno-comment \
+# -Wno-uninitialized -Werror -pipe
+#SCRIPT=rhapsody
+##--rhapsody--
+
## NetBSD
##--netbsd--
#CF = cf/netbsd.h
diff --git a/configure b/configure
index afccab3e..8858d31a 100755
--- a/configure
+++ b/configure
@@ -7,6 +7,8 @@ machine=`uname -m`
if [ "$sysname" = "" ]; then
case $uname in
+ Rhapsody)
+ sysname=rhapsody;;
ULTRIX)
sysname=ultrix;;
BSD/OS)
diff --git a/includes/osdep.h b/includes/osdep.h
index deacaedd..4ea4cd86 100644
--- a/includes/osdep.h
+++ b/includes/osdep.h
@@ -113,7 +113,11 @@
#endif
#ifdef NeXT
+# ifdef __APPLE__
+# include "cf/rhapsody.h"
+# else
# include "cf/nextstep.h"
+# endif
#endif
/* Porting::
diff --git a/relay/dhcrelay.c b/relay/dhcrelay.c
index 5c0091b7..1631211a 100644
--- a/relay/dhcrelay.c
+++ b/relay/dhcrelay.c
@@ -42,7 +42,7 @@
#ifndef lint
static char copyright[] =
-"$Id: dhcrelay.c,v 1.9.2.2 1998/06/25 05:50:23 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
+"$Id: dhcrelay.c,v 1.9.2.3 1998/06/25 18:34:47 mellon Exp $ Copyright (c) 1997 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -56,6 +56,12 @@ struct tree_cache *global_options [256];
int log_perror = 1;
+/* Needed to prevent linking against conflex.c. */
+int lexline;
+int lexchar;
+char *token_line;
+char *tlname;
+
char *path_dhcrelay_pid = _PATH_DHCRELAY_PID;
#ifdef USE_FALLBACK