From fc3ffedcfe173900d65f6fa7db3a3cf2608f9f68 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 25 Feb 2009 15:05:43 +0100 Subject: [PATCH] Don't define _GNU_SOURCE if it's already defined on the command-line. --- pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index af6885f67a6..0e4a7e22894 100644 --- a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm +++ b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm @@ -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 "); $self->pidl("#include "); $self->pidl("#include ");