gww@marduk.UUCP (Gary Winiger) (09/05/87)
Subject: etc/talkd won't link +Fix Index: etc/talkd/{print,table}.c 4.3BSD +Fix Description: {print,table}.o have unsatisfied externals of hton? because of a missing include file. Repeat-By: Attempt to build talkd on a standard distributed system on a BigEndian machine. Fix: Add the include file <netinet/in.h> to {print,table}.c The attached code corrects this problem at Elxsi. Gary.. {ucbvax!sun,lll-lcc!lll-tis,amdahl!altos86,bridge2}!elxsi!gww --------- cut --------- snip --------- :.,$w diff ------------- RCS file: /RCS/usr/src/etc/talkd/print.c,v retrieving revision 1.1 diff -c -r1.1 print.c *** /tmp/,RCSt1001391 Wed Apr 1 14:15:07 1987 --- print.c Wed Apr 1 14:14:28 1987 *************** *** 1,5 **** --- 1,8 ---- /* * $Log: print.c,v $ + * Revision 1.2 87/04/01 14:14:26 gww + * Add missing include. + * * Revision 1.1 87/04/01 14:07:57 gww * Initial revision * *************** *** 11,17 **** */ #ifndef lint ! static char *ERcsId = "$Header: print.c,v 1.1 87/04/01 14:07:57 gww Exp $ ENIX BSD"; static char sccsid[] = "@(#)print.c 5.2 (Berkeley) 3/13/86"; #endif not lint --- 14,20 ---- */ #ifndef lint ! static char *ERcsId = "$Header: print.c,v 1.2 87/04/01 14:14:26 gww Exp $ ENIX BSD"; static char sccsid[] = "@(#)print.c 5.2 (Berkeley) 3/13/86"; #endif not lint *************** *** 21,26 **** --- 24,30 ---- #include <syslog.h> #include <protocols/talkd.h> + #include <netinet/in.h> static char *types[] = { "leave_invite", "look_up", "delete", "announce" }; *** /tmp/,RCSt1001398 Wed Apr 1 14:18:36 1987 --- table.c Wed Apr 1 14:14:25 1987 *************** *** 1,5 **** --- 1,8 ---- /* * $Log: table.c,v $ + * Revision 1.2 87/04/01 14:14:19 gww + * Add missing include. + * * Revision 1.1 87/04/01 14:07:58 gww * Initial revision * *************** *** 11,17 **** */ #ifndef lint ! static char *ERcsId = "$Header: table.c,v 1.1 87/04/01 14:07:58 gww Exp $ ENIX BSD"; static char sccsid[] = "@(#)table.c 5.2 (Berkeley) 3/13/86"; #endif not lint --- 14,20 ---- */ #ifndef lint ! static char *ERcsId = "$Header: table.c,v 1.2 87/04/01 14:14:19 gww Exp $ ENIX BSD"; static char sccsid[] = "@(#)table.c 5.2 (Berkeley) 3/13/86"; #endif not lint *************** *** 28,33 **** --- 31,37 ---- #include <syslog.h> #include <protocols/talkd.h> + #include <netinet/in.h> #define MAX_ID 16000 /* << 2^15 so I don't have sign troubles */