[tkined] compile error in tnmNtp.c

From: Matt Selsky (selsky@columbia.edu)
Date: Mon Jun 25 2001 - 10:28:29 MET DST


Compiling tnmNtp.c on solaris8 with gcc:

gcc -c -O -fPIC -I. -I./../tnm/generic -I/opt/local/include
./../tnm/generic/tnmNtp.c
./../tnm/generic/tnmNtp.c:35: conflicting types for `ipaddr_t'
/usr/include/netinet/in.h:74: previous declaration of `ipaddr_t'
make: *** [tnmNtp.o] Error 1

Solaris defines ipaddr_t, so the declaration in tnmNtp.c should be
conditional, but ipaddr_t isn't even used in this file so I don't think it
should be there at all.

Patch:

--- tnmNtp.c.orig Wed Sep 18 17:33:54 1996
+++ tnmNtp.c Mon Jun 25 04:25:48 2001
@@ -29,12 +29,6 @@
     unsigned char data[(480 + 20)]; /* data + auth */
 };
 
-#if (SIZEOF_LONG == 8)
-typedef unsigned int ipaddr_t;
-#else
-typedef unsigned long ipaddr_t;
-#endif
-
 /*
  * The socket used to send and receive NTP datagrams.
  */

--
!! This message is brought to you via the `tkined & scotty' mailing list.
!! Please do not reply to this message to unsubscribe. To subscribe or
!! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>.
!! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.



This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 14:56:27 MET