+Fri Sep 30 17:04:24 1994 Theodore Y. Ts'o (tytso@dcl)
+
+ * krshd.c: Use ifdef for SETPGRP_TWOARG and HAVE_KILLPG
+
+ * krlogind.c: Use ifdef include of HAVE_SYS_TTY_H and
+ HAVE_SYS_PTYVAR_H (suncc doesn't #define solaris).
+
Thu Sep 29 22:50:05 1994 Theodore Y. Ts'o (tytso@dcl)
* Makefile.in: "make clean" should remove the executables
#include <sys/param.h>
#include <utmp.h>
-#ifdef __svr4__
+#ifdef HAVE_SYS_TTY_H
#include <sys/tty.h>
-#ifndef solaris20
+#endif
+
+#ifndef HAVE_SYS_PTYVAR_H
/* These values are over-the-wire protocol, *not* local values */
#define TIOCPKT_NOSTOP 0x10
#define TIOCPKT_DOSTOP 0x20
/* but solaris actually uses packet mode, so the real macros are needed too */
#include <sys/ptyvar.h>
#endif
-#endif
#ifdef HAVE_SYS_FILIO_H
/* get FIONBIO from sys/filio.h, so what if it is a compatibility feature */
#include "loginpaths.h"
-/** XXX - make these portable **/
-#ifdef hpux
-/* has no killpg... */
-#define killpg(pid, sig) kill(-(pid), (sig))
-#endif
-
-#ifdef __svr4__
+#ifndef SETPGRP_TWOARG
#define setpgrp(a,b) setpgrp()
-#define getpgrp(a) getpgid(a)
-/* has no killpg... */
-#define killpg(pid, sig) kill(-(pid), (sig))
#endif
-#ifdef linux
-#define setpgrp(a,b) setpgid(a,b)
+#ifndef HAVE_KILLPG
+#define killpg(pid, sig) kill(-(pid), (sig))
#endif
#ifdef __SCO__