* sysdep-sysv4.h: New file for SVR4.
authorFred Fish <fnf@specifix.com>
Wed, 3 Mar 1993 05:52:32 +0000 (05:52 +0000)
committerFred Fish <fnf@specifix.com>
Wed, 3 Mar 1993 05:52:32 +0000 (05:52 +0000)
* configure.in (*-*-sysv4*):  Use sysdep-sysv4.h.

* configure.in (*-*-ultrix2):  Add triplet from Michael Rendell
(michael@mercury.cs.mun.ca)

readline/.Sanitize
readline/ChangeLog
readline/sysdep-sysv4.h [new file with mode: 0644]

index 7a5a7f1decce775669ad1eff93a3689d463c5a49..0599ebd714156a88c78d72bfc336baae0f6e0c01 100644 (file)
@@ -48,6 +48,7 @@ sysdep-irix.h
 sysdep-norm.h
 sysdep-obsd.h
 sysdep-sco.h
+sysdep-sysv4.h
 vi_keymap.c
 vi_mode.c
 
index 21ac9a48fed4bfea49e6b19ec986f4e37bc920be..445df76e5df35c8c895a995b13edf3d39cf2cf93 100644 (file)
@@ -1,3 +1,11 @@
+Tue Mar  2 21:25:36 1993  Fred Fish  (fnf@cygnus.com)
+
+       * sysdep-sysv4.h:  New file for SVR4.
+       * configure.in (*-*-sysv4*):  Use sysdep-sysv4.h.
+
+       * configure.in (*-*-ultrix2):  Add triplet from Michael Rendell
+       (michael@mercury.cs.mun.ca)
+
 Tue Dec 15 12:38:16 1992  Ian Lance Taylor  (ian@cygnus.com)
 
        * configure.in (i[34]86-*-sco3.2v4*): use mh-sco4.
diff --git a/readline/sysdep-sysv4.h b/readline/sysdep-sysv4.h
new file mode 100644 (file)
index 0000000..558492f
--- /dev/null
@@ -0,0 +1,26 @@
+/* System-dependent stuff, for SVR4 systems */
+
+#ifdef __GNUC__
+#define alloca __builtin_alloca
+#else
+#if defined (sparc) && defined (sun)
+#include <alloca.h>
+#endif
+#ifndef alloca                         /* May be a macro, with args. */
+extern char *alloca ();
+#endif
+#endif
+
+#include <sys/types.h>                 /* Needed by dirent.h */
+#include <sys/stream.h>
+#include <sys/ptem.h>
+#include <dirent.h>
+typedef struct dirent dirent;
+
+/* SVR4 systems should use <termios.h> rather than <termio.h>. */
+#define _POSIX_VERSION
+
+/* SVR4 systems need _POSIX_SOURCE defined to suppress 'struct winsize'
+   definition in <termios.h>, since it's unconditionally defined in
+   <sys/ptem.h>. */
+#define _POSIX_SOURCE
This page took 0.026218 seconds and 4 git commands to generate.