Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl2/lvm2/dist/lib/commands Try to fix amd64 build.



details:   https://anonhg.NetBSD.org/src/rev/ada63ff07507
branches:  trunk
changeset: 749638:ada63ff07507
user:      haad <haad%NetBSD.org@localhost>
date:      Sat Dec 05 01:52:44 2009 +0000

description:
Try to fix amd64 build.

diffstat:

 external/gpl2/lvm2/dist/lib/commands/toolcontext.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r ca033122f175 -r ada63ff07507 external/gpl2/lvm2/dist/lib/commands/toolcontext.c
--- a/external/gpl2/lvm2/dist/lib/commands/toolcontext.c        Sat Dec 05 01:25:12 2009 +0000
+++ b/external/gpl2/lvm2/dist/lib/commands/toolcontext.c        Sat Dec 05 01:52:44 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: toolcontext.c,v 1.6 2009/12/02 01:53:25 haad Exp $     */
+/*     $NetBSD: toolcontext.c,v 1.7 2009/12/05 01:52:44 haad Exp $     */
 
 /*
  * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
@@ -845,13 +845,17 @@
        return 1;
 }
 
+#ifdef __NetBSD__
+#include <dlfcn.h>
+#endif
+
 static int _init_single_segtype(struct cmd_context *cmd,
                                struct segtype_library *seglib)
 {
        struct segment_type *(*init_segtype_fn) (struct cmd_context *);
        struct segment_type *segtype;
 
-       if (!(init_segtype_fn = (void *) dlsym(seglib->lib, "init_segtype"))) {
+       if (!(init_segtype_fn = dlsym(seglib->lib, "init_segtype"))) {
                log_error("Shared library %s does not contain segment type "
                          "functions", seglib->libname);
                return 0;



Home | Main Index | Thread Index | Old Index