Properly support sentinels for binary init functions. This should fix the build.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 11 May 2008 12:08:31 +0000 (14:08 +0200)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 11 May 2008 12:08:31 +0000 (14:08 +0200)
(This used to be commit 9ba5962addc0ef2e0d01329ab8178b3f51659e75)

source4/build/smb_build/input.pm

index 34b4445fe2d25361a550e885c5dff04658a72a8c..7028d2ab17633721001630849b9f8a6f4b71a129 100644 (file)
@@ -170,6 +170,8 @@ sub check_binary($$)
        return if ($bin->{ENABLE} ne "YES");
 
        ($bin->{BINARY} = (lc $bin->{NAME})) if not defined($bin->{BINARY});
+       unless (defined($bin->{INIT_FUNCTION_SENTINEL})) { $bin->{INIT_FUNCTION_SENTINEL} = "NULL"; }
+       unless (defined($bin->{INIT_FUNCTION_TYPE})) { $bin->{INIT_FUNCTION_TYPE} = "NTSTATUS (*) (void)"; }
 
        $bin->{OUTPUT_TYPE} = ["BINARY"];
        add_libreplace($bin);