diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-02-25 15:05:43 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-02-25 15:05:43 +0100 |
commit | fc3ffedcfe173900d65f6fa7db3a3cf2608f9f68 (patch) | |
tree | 74ac4897a65f574e0daf162b4b70115c9245c2a3 /pidl/lib/Parse/Pidl/Samba4/NDR | |
parent | 258ae4cec596631b758fb17c170c4494e4db8a8e (diff) | |
download | samba-fc3ffedcfe173900d65f6fa7db3a3cf2608f9f68.tar.gz samba-fc3ffedcfe173900d65f6fa7db3a3cf2608f9f68.tar.bz2 samba-fc3ffedcfe173900d65f6fa7db3a3cf2608f9f68.zip |
Don't define _GNU_SOURCE if it's already defined on the command-line.
Diffstat (limited to 'pidl/lib/Parse/Pidl/Samba4/NDR')
-rw-r--r-- | pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm b/pidl/lib/Parse/Pidl/Samba4/NDR/Parser.pm index af6885f67a..0e4a7e2289 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 <stdint.h>"); $self->pidl("#include <stdlib.h>"); $self->pidl("#include <stdio.h>"); |