changeset 48427:24cfc6cd2142

Move OSF1 stuff from m/alpha.h to here.
author Dave Love <fx@gnu.org>
date Mon, 18 Nov 2002 16:02:39 +0000
parents aef97cec2d4f
children e9c516ca4473
files src/s/osf1.h
diffstat 1 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/osf1.h	Mon Nov 18 15:53:38 2002 +0000
+++ b/src/s/osf1.h	Mon Nov 18 16:02:39 2002 +0000
@@ -44,3 +44,31 @@
 #undef bcmp
 #endif
 #endif
+
+#define ORDINARY_LINK
+
+/* Some systems seem to have this, others don't.  */
+#ifdef HAVE_LIBDNET
+#define LIBS_MACHINE -ldnet
+#else
+#define LIBS_MACHINE -ldnet_stub
+#endif
+
+#define LIBS_DEBUG
+#define START_FILES pre-crt0.o
+
+#define PTY_ITERATION		for (i = 0; i < 1; i++) /* ick */
+#define PTY_NAME_SPRINTF	/* none */
+#define PTY_TTY_NAME_SPRINTF	/* none */
+#define PTY_OPEN					\
+  do							\
+    {							\
+      int dummy;					\
+      SIGMASKTYPE mask;					\
+      mask = sigblock (sigmask (SIGCHLD));		\
+      if (-1 == openpty (&fd, &dummy, pty_name, 0, 0))	\
+	fd = -1;					\
+      sigsetmask (mask);				\
+      emacs_close (dummy);				\
+    }							\
+  while (0)