Re: [COMPILING] Weird Compiling error. from "Stephen Arnold" at Aug 22, 97 07:51:43 am

From: Andrew Helm (ashe@IGLOU.COM)
Date: 08/22/97


[comm.h]
> #ifndef htonl
>    u_long htonl();
> #endif
> #ifndef ntohl
>    u_long ntohl();
> #endif
[endian.h]
> u_int32m_t      htonl __P((u_int32m_t));
> u_int32m_t      ntohl __P((u_int32m_t));
>
>         SO, Can I remove the declaration in comm.h or is where it is
> declared in endian.h not the way its supposed to be? Anyone got any
> advice? Thanx

That's an odd problem. Try moving the lines in comm.c that read:

#ifdef HAVE_ARPA_TELNET_H
#include <arpa/telnet.h>
#else
#include "telnet.h"
#endif

to before the lines that read:
#include "structs.h"
#include "utils.h"
#include "comm.h"


If that doesn't work, then just delete the defines in comm.h


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/08/00 PST