summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-06 23:28:18 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:21 -0500
commitba564a901e519b0f2cf2b7651bd260f618506b5c (patch)
treea898ee789be671abe8ca6039d90a419f3fe39149 /source4/build
parentc389883ba2c93dfc11ac410a952f42f1065057d2 (diff)
downloadsamba-ba564a901e519b0f2cf2b7651bd260f618506b5c.tar.gz
samba-ba564a901e519b0f2cf2b7651bd260f618506b5c.tar.bz2
samba-ba564a901e519b0f2cf2b7651bd260f618506b5c.zip
r13903: Don't generate prototypes for modules and binaries in include/proto.h by
default. (This used to be commit c80a8f1102caf744b66c13bebde38fba74983dc4)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/smb_build/input.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm
index 0499d62565..8796441a22 100644
--- a/source4/build/smb_build/input.pm
+++ b/source4/build/smb_build/input.pm
@@ -148,7 +148,11 @@ sub check($$$$$)
foreach my $part (values %$INPUT) {
unless(defined($part->{NOPROTO})) {
- $part->{NOPROTO} = "NO";
+ if ($part->{TYPE} eq "MODULE" or $part->{TYPE} eq "BINARY") {
+ $part->{NOPROTO} = "YES";
+ } else {
+ $part->{NOPROTO} = "NO";
+ }
}
if (defined($part->{PRIVATE_PROTO_HEADER})) {