git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd3f3e6
)
Only define _GNU_SOURCE if it's not defined yet.
author
Jelmer Vernooij
<jelmer@samba.org>
Wed, 25 Feb 2009 15:54:35 +0000
(16:54 +0100)
committer
Jelmer Vernooij
<jelmer@samba.org>
Wed, 25 Feb 2009 15:54:35 +0000
(16:54 +0100)
pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
patch
|
blob
|
history
diff --git
a/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
b/pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
index f8209be654b4134ddf06915cf082f70c22970231..f2a96a303778279d06dba71582d3318f674e9f8b 100644
(file)
--- a/
pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
+++ b/
pidl/lib/Parse/Pidl/Samba4/NDR/Client.pm
@@
-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";