From d1f2f854daf3a945ebdb2de6cdd8bd9f492de0f2 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 28 Oct 2011 15:54:03 +0200 Subject: [PATCH] ld_iscsi: use constructor attribute This is cleaner, and libtool otherwise complains. --- src/ld_iscsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ld_iscsi.c b/src/ld_iscsi.c index 00ec834..4ff933d 100644 --- a/src/ld_iscsi.c +++ b/src/ld_iscsi.c @@ -291,7 +291,7 @@ int dup2(int oldfd, int newfd) } -void _init(void) +static void __attribute__((constructor)) _init(void) { int i;