* main.c: Don't include netdb.h or sys/socket.h if krb.h is
included; this works around an Ultrix bug where those headers
aren't protected against multiple inclusion.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10332
dc483132-0cff-0310-8789-
dd5450dbe970
+Thu Dec 11 23:26:58 1997 Tom Yu <tlyu@mit.edu>
+
+ * ftp.c:
+ * main.c: Don't include netdb.h or sys/socket.h if krb.h is
+ included; this works around an Ultrix bug where those headers
+ aren't protected against multiple inclusion.
+
Thu Oct 16 01:20:30 1997 Tom Yu <tlyu@mit.edu>
* main.c: Change KERBEROS to KRB5_KRB4_COMPAT where appropriate.
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
+#ifndef KRB5_KRB4_COMPAT
+/* krb.h gets this, and Ultrix doesn't protect vs multiple inclusion */
#include <sys/socket.h>
+#endif
#include <sys/time.h>
#include <sys/file.h>
#ifdef HAVE_SYS_SELECT_H
#include <signal.h>
#include <string.h>
#include <errno.h>
+#ifndef KRB5_KRB4_COMPAT
+/* krb.h gets this, and Ultrix doesn't protect vs multiple inclusion */
#include <netdb.h>
+#endif
#include <fcntl.h>
#include <pwd.h>
#ifndef STDARG
*/
#include <stdio.h>
#include "ftp_var.h"
+#ifndef KRB5_KRB4_COMPAT
+/* krb.h gets this, and Ultrix doesn't protect vs multiple inclusion */
#include <sys/socket.h>
+#endif
#include <sys/ioctl.h>
#include <sys/types.h>
#include <string.h>
#include <errno.h>
#include <ctype.h>
+#ifndef KRB5_KRB4_COMPAT
+/* krb.h gets this, and Ultrix doesn't protect vs multiple inclusion */
#include <netdb.h>
+#endif
#include <pwd.h>
#define sig_t my_sig_t