[sr-dev] _GNU_SOURCE

Juha Heinanen jh at tutpro.com
Wed Apr 9 08:06:47 CEST 2014


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



More information about the sr-dev mailing list