Module Name: src
Committed By: riz
Date: Sun May 27 17:27:34 UTC 2012
Modified Files:
src/sbin/iscsid: iscsid_globals.h
Log Message:
When ISCSI_NOTHREAD is defined, make UNLOCK_SESSIONS a different kind
of noop, so that things build.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/iscsid/iscsid_globals.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/iscsid/iscsid_globals.h
diff -u src/sbin/iscsid/iscsid_globals.h:1.4 src/sbin/iscsid/iscsid_globals.h:1.5
--- src/sbin/iscsid/iscsid_globals.h:1.4 Sun Nov 20 01:23:57 2011
+++ src/sbin/iscsid/iscsid_globals.h Sun May 27 17:27:33 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsid_globals.h,v 1.4 2011/11/20 01:23:57 agc Exp $ */
+/* $NetBSD: iscsid_globals.h,v 1.5 2012/05/27 17:27:33 riz Exp $ */
/*-
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -401,7 +401,7 @@ int debug_level; /* How much info to
#endif
#ifdef ISCSI_NOTHREAD
#define LOCK_SESSIONS event_handler(NULL)
-#define UNLOCK_SESSIONS
+#define UNLOCK_SESSIONS do {} while(0)
#else
#define LOCK_SESSIONS pthread_mutex_lock(&sesslist_lock)
#define UNLOCK_SESSIONS pthread_mutex_unlock(&sesslist_lock)