Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Re: dev-22 compile problem



Bart Schaefer wrote:

> On Apr 12,  4:29pm, Jason Price wrote:
> > Subject: dev-22 compile problem
> > 
> > hashtable.c:1191: structure has no member named `en_cols'
> 
> Apparently no one else is building zsh with HAVE_NIS_PLUS.
> 
> Try deleting half of the .en_cols.en_cols on line 1191 of hashtable.c.

No. The field is named en_cols_len. Weird, I'm pretty sure I once was
able to compile and use it -- some years ago.

Bye
 Sven

Index: Src/hashtable.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/hashtable.c,v
retrieving revision 1.2
diff -u -r1.2 hashtable.c
--- Src/hashtable.c	2000/04/01 20:49:48	1.2
+++ Src/hashtable.c	2000/04/13 08:16:46
@@ -1188,7 +1188,7 @@
 static int
 add_userdir(nis_name table, nis_object *object, void *userdata)
 {
-    if (object->zo_data.objdata_u.en_data.en_cols.en_cols >= 6) {
+    if (object->zo_data.objdata_u.en_data.en_cols.en_cols_len >= 6) {
 	static char name[40], dir[PATH_MAX + 1];
 	register entry_col *ec =
 	    object->zo_data.objdata_u.en_data.en_cols.en_cols_val;

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author