X-Git-Url: https://git.octo.it/?p=sort-networks.git;a=blobdiff_plain;f=src%2Fpop_stats.c;h=7f799f84f69bd8d165728b3f4b1996f91da6a53f;hp=7a13c826452e71d2e01acd12923e53f0612219cd;hb=1994d8e13989540139039a552002378b46a8f449;hpb=81c1349a79fa02e265aa2f2cde30da58edac7fa2 diff --git a/src/pop_stats.c b/src/pop_stats.c index 7a13c82..7f799f8 100644 --- a/src/pop_stats.c +++ b/src/pop_stats.c @@ -19,6 +19,16 @@ * Florian octo Forster **/ +#ifndef _ISOC99_SOURCE +# define _ISOC99_SOURCE +#endif +#ifndef _POSIX_C_SOURCE +# define _POSIX_C_SOURCE 200809L +#endif +#ifndef _XOPEN_SOURCE +# define _XOPEN_SOURCE 700 +#endif + #include #include #include @@ -29,10 +39,6 @@ #include "pop_stats.h" -/* Yes, this is ugly, but the GNU libc doesn't export it with the above flags. - * */ -char *strdup (const char *s); - struct pop_stats_s /* {{{ */ { pthread_mutex_t lock;