solaris: fix afs_event build error
authorMichael Meffie <mmeffie@sinenomine.net>
Wed, 14 Sep 2011 14:48:08 +0000 (10:48 -0400)
committerDerrick Brashear <shadow@dementix.org>
Fri, 16 Sep 2011 03:42:56 +0000 (20:42 -0700)
Fix build error on solaris introduced with commit
dc077b83c9b1f107efbc3483743f44117748f23c.

Change-Id: Id41a0d7cf6400769dde5d2626854e2190cd6bd2e
Reviewed-on: http://gerrit.openafs.org/5419
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>

src/afs/afs.h
src/afs/afs_osi.c

index 8b2badf..ca5509a 100644 (file)
@@ -1584,7 +1584,7 @@ typedef struct afs_event {
     int cond;                  /* "all this gluck should probably be replaced by CVs" */
 #elif defined(AFS_LINUX24_ENV)
     wait_queue_head_t cond;
-#elif defined(AFS_NBSD_ENV) || defined(AFS_SOLARIS_ENV) || defined(AFS_SGI_ENV)
+#elif defined(AFS_NBSD_ENV) || defined(AFS_SUN5_ENV) || defined(AFS_SGI_ENV)
     kcondvar_t cond;           /* Currently associated condition variable */
 #endif
 } afs_event_t;
index b446e8b..95579c1 100644 (file)
@@ -299,7 +299,7 @@ shutdown_osisleep(void)
                xmfree(tmp);
 #elif defined(AFS_FBSD_ENV)
                afs_osi_Free(tmp, sizeof(*tmp));
-#elif defined(AFS_SGI_ENV) || defined(AFS_XBSD_ENV) || defined(AFS_SOLARIS_ENV)
+#elif defined(AFS_SGI_ENV) || defined(AFS_XBSD_ENV) || defined(AFS_SUN5_ENV)
                osi_FreeSmallSpace(tmp);
 #elif defined(AFS_LINUX26_ENV)
                kfree(tmp);