summaryrefslogtreecommitdiff
path: root/source3/aclocal.m4
diff options
context:
space:
mode:
authorPaul Green <paulg@samba.org>2006-04-26 15:41:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:16:31 -0500
commit31693197bee0d71e83418c0fb72685fd848e358f (patch)
tree86018f692df7a1911cb920816294b14e17d46a7a /source3/aclocal.m4
parentf93da6d684312994a10827b36de7a72c7288ed7e (diff)
downloadsamba-31693197bee0d71e83418c0fb72685fd848e358f.tar.gz
samba-31693197bee0d71e83418c0fb72685fd848e358f.tar.bz2
samba-31693197bee0d71e83418c0fb72685fd848e358f.zip
r15283: Oh yeah. The build farm doesn't do much with head. OK, here is the patch to SAMBA_3_0 to declare prototypes for the initialization functions. These are the same changes I just made to head. --paulg
(This used to be commit 17774387ad879b6a72dd1cf406326318add31b04)
Diffstat (limited to 'source3/aclocal.m4')
-rw-r--r--source3/aclocal.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/aclocal.m4 b/source3/aclocal.m4
index 86c43f80dc..cb8c7f00e2 100644
--- a/source3/aclocal.m4
+++ b/source3/aclocal.m4
@@ -57,6 +57,7 @@ AC_DEFUN(SMB_MODULE,
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();"
+ [decl_static_modules_]translit([$4], [A-Z], [a-z])="$[decl_static_modules_]translit([$4], [A-Z], [a-z]) extern NTSTATUS $1_init();"
string_static_modules="$string_static_modules $1"
$4_STATIC="$$4_STATIC $2"
AC_SUBST($4_STATIC)
@@ -73,6 +74,7 @@ AC_DEFUN(SMB_SUBSYSTEM,
AC_SUBST($1_STATIC)
AC_SUBST($1_MODULES)
AC_DEFINE_UNQUOTED([static_init_]translit([$1], [A-Z], [a-z]), [{$init_static_modules_]translit([$1], [A-Z], [a-z])[}], [Static init functions])
+ AC_DEFINE_UNQUOTED([static_decl_]translit([$1], [A-Z], [a-z]), [$decl_static_modules_]translit([$1], [A-Z], [a-z]), [Decl of Static init functions])
ifelse([$2], , :, [rm -f $2])
])