1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Only define _GNU_SOURCE if it's not defined yet.

This commit is contained in:
Jelmer Vernooij 2009-02-25 16:54:35 +01:00
parent fd3f3e68f2
commit d7c7b31bba

View File

@ -131,7 +131,9 @@ sub Parse($$$$)
if (is_intree()) {
$res .= "#include \"includes.h\"\n";
} else {
$res .= "#ifndef _GNU_SOURCE\n";
$res .= "#define _GNU_SOURCE\n";
$res .= "#endif\n";
$res .= "#include <stdio.h>\n";
$res .= "#include <stdbool.h>\n";
$res .= "#include <stdlib.h>\n";