/* -*-C-*-
-$Id: oscond.h,v 1.22 1996/07/01 23:25:27 cph Exp $
+$Id: oscond.h,v 1.23 1997/05/01 01:21:20 cph Exp $
-Copyright (c) 1990-96 Massachusetts Institute of Technology
+Copyright (c) 1990-97 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
/* _POSIX is assumed to be independent of all operating-system and
machine specification macros. */
-#if defined(__osf__) || defined(_AIX) || defined(__linux)
+#if defined(__osf__) || defined(_AIX) || defined(__linux) || defined(__bsdi__) || defined(_ULTRIX) || defined(__FreeBSD__)
# define _POSIX
# define _BSD4_3
#endif
+/* From Garrett Wollman <wollman@lcs.mit.edu>:
+ __FreeBSD__ == 1 means version 1.x
+ __FreeBSD__ == 2 means there is an <osreldate.h> and __FreeBSD_version
+ from that header is a release date.
+ __FreeBSD__ == 3 means there is an <osreldate.h> and __FreeBSD_version
+ is a large integer which is not a date (sigh) but which is related to
+ the version number (i.e, it's totally pointless). */
+
#if defined(__hpux) && !defined(hpux)
#define hpux
#endif
#endif /* _NEXTOS */
-#if defined(_ULTRIX)
-#define _POSIX
-#define _BSD4_3
-#endif
-
#if defined(_SUNOS3) || defined(_SUNOS4)
#define _SUNOS
#define _BSD4_2
/* -*-C-*-
System file for 386BSD
-$Id: 386bsd.h,v 1.1 1993/02/18 04:46:18 gjr Exp $
+$Id: 386bsd.h,v 1.2 1997/05/01 01:19:13 cph Exp $
-Copyright (c) 1993 Massachusetts Institute of Technology
+Copyright (c) 1993-97 Massachusetts Institute of Technology
This material was developed by the Scheme project at the Massachusetts
Institute of Technology, Department of Electrical Engineering and
promotional, or sales literature without prior written consent from
MIT in each case. */
-#define C_SWITCH_SYSTEM -D_POSIX -D_BSD -I/usr/X386/include
+#define C_SWITCH_SYSTEM -I/usr/X11R6/include
#define C_OPTIMIZE_SWITCH -O6
-#define LIBX11_MACHINE -L/usr/X386/lib
+#define LIBX11_MACHINE -L/usr/X11R6/lib
#define LIBS_TERMCAP -ltermcap
#define LIB_DEBUG
#define ALTERNATE_M4 s/ultrix.m4
+
+/* Use the built-in files <limits.h> and <float.h> rather than those
+ generated by the "hard-par" program. */
+#define USE_BUILT_IN_LIMITS_FILES
+
+#ifdef __bsdi__
+/* Compile using shared libraries and GCC v2. */
+#define ALTERNATE_CC shlicc2
+#endif
+
+#ifdef __FreeBSD__
+#define ALTERNATE_CC gcc
+#endif
/* -*-C-*-
-$Id: ux.h,v 1.65 1996/07/01 23:27:18 cph Exp $
+$Id: ux.h,v 1.66 1997/05/01 01:23:43 cph Exp $
Copyright (c) 1988-96 Massachusetts Institute of Technology
# define SYSTEM_VARIANT "386BSD"
#endif
+#ifdef __FreeBSD__
+# include <sys/ioctl.h>
+# define EMULATE_FPATHCONF
+# define EMULATE_SYSCONF
+# define NO_BAUD_CONVERSION
+# define SYSTEM_VARIANT "FreeBSD"
+#endif
+
+#ifdef __bsdi__ /* works on bsdi 3.0 */
+# define LSEEK_DECLARED
+# define SELECT_DECLARED
+# include <sys/ioctl.h>
+# define EMULATE_FPATHCONF
+# define EMULATE_SYSCONF
+# define NO_BAUD_CONVERSION
+# define SYSTEM_VARIANT "BSDI BSD/OS"
+#endif
+
/* no longer needed */
#if 0
#ifdef sonyrisc