* krlogin.c, krsh.c, krshd.c, krlogin.c, krlogind.c: use them.
Still doesn't build on Solaris, but it's a start.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@4014
dc483132-0cff-0310-8789-
dd5450dbe970
+Tue Jul 26 00:25:57 1994 Mark Eichin (eichin@cygnus.com)
+
+ * configure.in: Added tests for HAVE_SETOWN, HAVE_SYS_FILIO_H.
+ * krlogin.c, krsh.c, krshd.c, krlogin.c, krlogind.c: use them.
+
Sat Jul 23 08:48:50 1994 Tom Yu (tlyu@dragons-lair)
* kcmd.c:
AC_HAVE_LIBRARY(socket)
AC_HAVE_LIBRARY(nsl)
AC_FUNC_CHECK(utimes,AC_DEFINE(HAS_UTIMES))
+AC_HAVE_HEADERS(sys/filio.h)
+AC_COMPILE_CHECK([F_SETOWN],
+[#include <sys/types.h>
+#include <fcntl.h>],
+[1+F_SETOWN;],
+AC_DEFINE(HAVE_SETOWN))
KRB_INCLUDE
WITH_KRB5ROOT
WITH_KRB4
krb5_free_creds(ret_cred);
return (-1);
}
-#if defined (hpux) || defined (CRAY) /*hpux does not handle async
- io thus setown is disabled */
-#else
+#ifdef HAVE_SETOWN
fcntl(s, F_SETOWN, pid);
-#endif /* hpux */
+#endif
sin.sin_family = hp->h_addrtype;
memcpy((caddr_t)&sin.sin_addr,hp->h_addr, hp->h_length);
sin.sin_port = rport;
it to the reader, and the oob() processing code in the reader will
work properly even if it is called when no oob() data is present.
*/
-#ifndef SYSV
+#ifdef HAVE_SETOWN
(void) fcntl(rem, F_SETOWN, getpid());
#endif
if (options & SO_DEBUG &&
(void) signal(SIGTTOU, SIG_IGN);
(void) signal(SIGURG, oob);
ppid = getppid();
-#ifndef SYSV
+#ifdef HAVE_SETOWN
(void) fcntl(rem, F_SETOWN, pid);
#endif
(void) setjmp(rcvtop);
#include <sys/param.h>
#include <utmp.h>
+#ifdef HAVE_SYS_FILIO_H
+/* get FIONBIO from sys/filio.h, so what if it is a compatibility feature */
+#include <sys/filio.h>
+#endif
+
#ifdef NO_WINSIZE
struct winsize {
unsigned short ws_row, ws_col;
#include <pwd.h>
#include <netdb.h>
+#ifdef HAVE_SYS_FILIO_H
+/* get FIONBIO from sys/filio.h, so what if it is a compatibility feature */
+#include <sys/filio.h>
+#endif
+
#ifdef KERBEROS
#include <krb5/krb5.h>
#include <krb5/asn1.h>
#include <syslog.h>
+#ifdef HAVE_SYS_FILIO_H
+/* get FIONBIO from sys/filio.h, so what if it is a compatibility feature */
+#include <sys/filio.h>
+#endif
+
#ifdef KERBEROS
#include <krb5/krb5.h>
#include <krb5/asn1.h>