# HG changeset patch # User Richard M. Stallman # Date 882659529 0 # Node ID d4e514328333a2cd9d6a884f2597bff727377418 # Parent 4d8e07123564e0829952b30f5df72d253908fb88 (update_one_menu_entry): Add conditional in case XmNpositionIndex is missing. diff -r 4d8e07123564 -r d4e514328333 lwlib/lwlib-Xm.c --- a/lwlib/lwlib-Xm.c Fri Dec 19 14:58:42 1997 +0000 +++ b/lwlib/lwlib-Xm.c Sat Dec 20 23:12:09 1997 +0000 @@ -544,8 +544,10 @@ /* Non-zero values don't work reliably in conjunction with Emacs' event loop */ XtSetArg (al [ac], XmNmappingDelay, 0); ac++; +#ifdef XmNpositionIndex /* This is undefined on SCO ODT 2.0. */ /* Tell Motif to put it in the right place */ - XtSetArg (al [ac], XmNpositionIndex, i); ac++; + XtSetArg (al [ac], XmNpositionIndex , i); ac++; +#endif button = XmCreateCascadeButtonGadget (parent, val->name, al, ac); xm_update_label (instance, button, val);