[sr-dev] _GNU_SOURCE

Daniel-Constantin Mierla miconda at gmail.com
Wed Apr 9 11:05:57 CEST 2014


Hello,

we should replace memmem with ser_memmem and remove _GNU_SOURCE for this 
case.

In the future we can look to replace strndup with an embedded version as 
well. tls module is a main one, but still compiles separately and is 
packaged on its own.

Cheers,
Daniel

On 09/04/14 08:06, Juha Heinanen wrote:
> daniel,
>
> thanks for your reply.  i started a new thread on _GNU_SOURCE.
>
> tcp_main.c includes io_wait.h, which in turn defines _GNU_SOURCE:
>
> #define _GNU_SOURCE  /* for POLLRDHUP on linux */
>
> _GNU_SOURCE is also included by tls module, which can be considered to
> be part of "core":
>
> #define _GNU_SOURCE 1 /* Needed for strndup */
>
> is it possible to get rid of these two _GNU_SOURCE dependencies?
>
> if not, then _GNU_SOURCE version of memmem can be freely used in all
> modules and we can get rid of ser_memmem.
>
> --- juha
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

-- 
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda




More information about the sr-dev mailing list