Re: [patch] fixing compilation warning under freebsd

Patrik Rådman <[email protected]>
Newsgroups gmane.network.sn
Message-ID <[email protected]>
Andrey Slusar <[email protected]> wrote:
> 
>  Hello.
> 
>  In freebsd ALIGN already defined in system headers. Attached patch is
> fixing this.

I see. Below is an alternative patch for this. (Untested since I don't have
access to any *BSD boxes, but should be OK.)


--- newsgroup.c (revision 48)
+++ newsgroup.c (working copy)
@@ -58,6 +58,7 @@
 static int avail = 0;
 static int nr = 0;

+#undef ALIGN   /* FreeBSD apparently defines this */
 #define ALIGN sizeof(char *)

 static int add (int ident, char *group, int len)


-- 
Patrik Rådman
patrik at iki dot fi
http://www.iki.fi/patrik/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.