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

Don't define _GNU_SOURCE if it's already defined on the command-line.

This commit is contained in:
Jelmer Vernooij 2009-02-25 15:05:43 +01:00
parent 258ae4cec5
commit fc3ffedcfe

View File

@ -2548,7 +2548,9 @@ sub GenerateIncludes($)
if (is_intree()) {
$self->pidl("#include \"includes.h\"");
} else {
$self->pidl("#ifndef _GNU_SOURCE");
$self->pidl("#define _GNU_SOURCE");
$self->pidl("#endif");
$self->pidl("#include <stdint.h>");
$self->pidl("#include <stdlib.h>");
$self->pidl("#include <stdio.h>");