* ftp.c:
authorTom Yu <tlyu@mit.edu>
Fri, 12 Dec 1997 04:27:57 +0000 (04:27 +0000)
committerTom Yu <tlyu@mit.edu>
Fri, 12 Dec 1997 04:27:57 +0000 (04:27 +0000)
* 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

src/appl/gssftp/ftp/ChangeLog
src/appl/gssftp/ftp/ftp.c
src/appl/gssftp/ftp/main.c

index 64cf0d0caa0a146966be1056944c10e9a0bc6249..34d61bcd2edb489465b5443a439148847a3837f8 100644 (file)
@@ -1,3 +1,10 @@
+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.
index 41207c06a81805692198644249d5aa6004e01e7f..3d2f07a368dba6be6b19eca325961a6a21a7321b 100644 (file)
@@ -41,7 +41,10 @@ static char sccsid[] = "@(#)ftp.c    5.38 (Berkeley) 4/22/91";
 #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
@@ -58,7 +61,10 @@ static char sccsid[] = "@(#)ftp.c    5.38 (Berkeley) 4/22/91";
 #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
index a73f4fb9337d59f24e12b86303ff2b06a591d08c..6c6cfc5f12bea4f3e7d808b93fdf63088e6f5b9c 100644 (file)
@@ -46,7 +46,10 @@ static char sccsid[] = "@(#)main.c   5.18 (Berkeley) 3/1/91";
  */
 #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>
 
@@ -56,7 +59,10 @@ static char sccsid[] = "@(#)main.c   5.18 (Berkeley) 3/1/91";
 #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