diff options
| -rw-r--r-- | usr.sbin/sade/sade.h | 6 | ||||
| -rw-r--r-- | usr.sbin/sysinstall/sysinstall.h | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/usr.sbin/sade/sade.h b/usr.sbin/sade/sade.h index a0b26a5a55e4..68585008d14e 100644 --- a/usr.sbin/sade/sade.h +++ b/usr.sbin/sade/sade.h @@ -214,7 +214,13 @@ typedef struct _dmenu { char *prompt; /* Our prompt */ char *helpline; /* Line of help at bottom */ char *helpfile; /* Help file for "F1" */ +#if (__STDC_VERSION__ >= 199901L) || (__GNUC__ >= 3) + dialogMenuItem items[]; /* Array of menu items */ +#elif __GNUC__ dialogMenuItem items[0]; /* Array of menu items */ +#else +#error "Create hack for C89 and K&R compilers." +#endif } DMenu; /* An rc.conf variable */ diff --git a/usr.sbin/sysinstall/sysinstall.h b/usr.sbin/sysinstall/sysinstall.h index a0b26a5a55e4..68585008d14e 100644 --- a/usr.sbin/sysinstall/sysinstall.h +++ b/usr.sbin/sysinstall/sysinstall.h @@ -214,7 +214,13 @@ typedef struct _dmenu { char *prompt; /* Our prompt */ char *helpline; /* Line of help at bottom */ char *helpfile; /* Help file for "F1" */ +#if (__STDC_VERSION__ >= 199901L) || (__GNUC__ >= 3) + dialogMenuItem items[]; /* Array of menu items */ +#elif __GNUC__ dialogMenuItem items[0]; /* Array of menu items */ +#else +#error "Create hack for C89 and K&R compilers." +#endif } DMenu; /* An rc.conf variable */ |
