r11653: Declare the correct return value for the static initialization functions.
authorPaul Green <paulg@samba.org>
Thu, 10 Nov 2005 20:32:00 +0000 (20:32 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:05:23 +0000 (11:05 -0500)
Some compilers (guess whose) have ABIs that return int values using a
different method than returning struct values.
(This used to be commit 6bf4d88ab584315312934c9866128fb47f8b41e6)

source3/aclocal.m4

index af93aa2..7c76549 100644 (file)
@@ -56,7 +56,7 @@ AC_DEFUN(SMB_MODULE,
                [$6]
                string_shared_modules="$string_shared_modules $1"
        elif test x"$DEST" = xSTATIC; then
-               [init_static_modules_]translit([$4], [A-Z], [a-z])="$[init_static_modules_]translit([$4], [A-Z], [a-z]) $1_init();"
+               [init_static_modules_]translit([$4], [A-Z], [a-z])="$[init_static_modules_]translit([$4], [A-Z], [a-z]) NTSTATUS $1_init();"
                string_static_modules="$string_static_modules $1"
                $4_STATIC="$$4_STATIC $2"
                AC_SUBST($4_STATIC)