Matthias,
You didn't bracket it with #ifdef TARGET_LINUX -- does that mean it's
appropriate on all platforms?
What about this (from the glibc manual): "If your program defines _BSD_SOURCE,
you must give the option `-lbsd-compat' to the compiler or linker when linking
the program, to tell it to find functions in this special compatibility
library before looking for them in the normal C library."
James
Matthias Andree said:
> On Thu, 29 Apr 2004, James Yonan wrote:
>
> > Ooops... let's try that again with the correct subject line.
> >
> > A new release of the 2.0 beta is available.
>
> This prompted me to pull from CVS, I figured I need this patch on Linux
> when compiling with GCC 3.4 with strict error checking enabled:
>
> Index: syshead.h
> ===
> RCS file: /cvsroot/openvpn/openvpn/syshead.h,v
> retrieving revision 1.25.2.6
> diff -u -r1.25.2.6 syshead.h
> --- syshead.h 29 Apr 2004 06:19:46 - 1.25.2.6
> +++ syshead.h 1 May 2004 10:09:05 -
> @@ -26,6 +26,8 @@
> #ifndef SYSHEAD_H
> #define SYSHEAD_H
>
> +#define _BSD_SOURCE
> +
> #ifdef HAVE_SYS_TYPES_H
> #include
> #endif
>
>
>
>
> ---
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 10g.
> Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> ___
> Openvpn-devel mailing list
> Openvpn-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/openvpn-devel
>
--