From e7f56e45b2c5e952208c0a0755ed04185dc7c8f2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 22 Aug 2006 20:39:01 +0000 Subject: r17719: ldb_cmdline needs to be static for cc on solaris (This used to be commit db4d99f35b6874da01d0a1c68d64bd73635a7ec9) --- source4/lib/ldb/tools/cmdline.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/lib/ldb/tools/cmdline.c b/source4/lib/ldb/tools/cmdline.c index f71b6eea69..1fd14d1739 100644 --- a/source4/lib/ldb/tools/cmdline.c +++ b/source4/lib/ldb/tools/cmdline.c @@ -39,7 +39,8 @@ struct ldb_cmdline *ldb_cmdline_process(struct ldb_context *ldb, int argc, const char **argv, void (*usage)(void)) { - struct ldb_cmdline options, *ret=NULL; + static struct ldb_cmdline options; /* needs to be static for older compilers */ + struct ldb_cmdline *ret=NULL; poptContext pc; #ifdef _SAMBA_BUILD_ int r; -- cgit