diff options
Diffstat (limited to 'source4/build/scons/proto.py')
-rw-r--r-- | source4/build/scons/proto.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/build/scons/proto.py b/source4/build/scons/proto.py index 38fc2d6f48..fc5cc1b7c1 100644 --- a/source4/build/scons/proto.py +++ b/source4/build/scons/proto.py @@ -13,7 +13,8 @@ proto_builder = SCons.Builder.Builder(action='$PROTOCOM', def generate(env): env['MKPROTO'] = './script/mkproto.sh' - env['PROTOCOM'] = '$MKPROTO "$PERL" -h _PROTO_H_ ${TARGETS[0]} $SOURCES' + env['PROTO_DEFINE'] = '_PROTO_H_' + env['PROTOCOM'] = '$MKPROTO "$PERL" -h $PROTO_DEFINE ${TARGETS[0]} $SOURCES' env['BUILDERS']['CProtoHeader'] = proto_builder def exists(env): |