[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bahamut ircd



The size of u_int is the same as u_long on x86 so you can probably do without
the ifdef and just use u_long.


Peter


On Sunday, March 9, 2003, at 09:02  PM, M Campbell wrote:

Well, I had some luck with the dalnet-src mailing list...patched
include/res.h and now it seems to be working. If anyone is interested ,
it's just a tiny patch :

===================================================================
RCS file: /home/source/sorcery/ircd/include/res.h,v
retrieving revision 1.1.1.2
retrieving revision 1.1.1.2.12.1
diff --unified=5 -r1.1.1.2 -r1.1.1.2.12.1
--- res.h       1997/07/25 21:27:29     1.1.1.2
+++ res.h       2002/11/08 21:28:34     1.1.1.2.12.1
@@ -35,11 +35,15 @@

 typedef        struct  reslist {
         int     id;
         int     sent;   /* number of requests sent */
         int     srch;
-       time_t  ttl;
+#ifdef  __alpha
+        u_int   ttl;                  /* time to live */
+#else
+        u_long  ttl;                  /* time to live */
+#endif
         char    type;
         char    retries; /* retry counter */
         char    sends;  /*number of sends (>1means resent) */
         char    resend;	/* send flag. 0 == dont resend */
         time_t	sentat;


	
On Sun, Mar 09, 2003 at 08:44:50AM -0800, M Campbell wrote:
Has anyone had success with Bahamut ircd on Alpha?  It compiles for me
with alot of warnings...mostly "cast from integer to pointer of
different size" and some others. The ircd will run, but DNS seems to be
completely broken.  The reverse dns done on a connecting client fails.
Anybody tried this?
Thank's
Mike


--
They that can give up essential liberty to obtain a little temporary safety
 deserve neither liberty nor safety.

- Benjamin Franklin (1706-1790), Letter to Josiah Quincy, Sept. 11, 1773.



--
They that can give up essential liberty to obtain a little temporary safety
 deserve neither liberty nor safety.

- Benjamin Franklin (1706-1790), Letter to Josiah Quincy, Sept. 11, 1773.


--
To UNSUBSCRIBE, email to debian-alpha-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org




Reply to: