Remove need to define _SAMBA_BUILD_ == 4 when using installed headers.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 1 Nov 2008 14:10:56 +0000 (15:10 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sat, 1 Nov 2008 14:10:56 +0000 (15:10 +0100)
source4/script/installheader.pl

index 6b10bde65f33775ec982c19a0cd7b47b60aadddf..a962306a748e58da5d754db328dcb6de18821288 100755 (executable)
@@ -64,6 +64,8 @@ sub install_header($$)
 
                if (/^#include \"(.*)\"/) {
                        print OUT "#include <" . rewrite_include("$src:$lineno", $1) . ">\n";
 
                if (/^#include \"(.*)\"/) {
                        print OUT "#include <" . rewrite_include("$src:$lineno", $1) . ">\n";
+               } else if (/^#if _SAMBA_BUILD_ == 4/) {
+                       print OUT "#if 1\n";
                } else {
                        print OUT $_;
                }
                } else {
                        print OUT $_;
                }