|
James Rich wrote: > The LC_ALL comes from the setlocale() function. man setlocale says that > LC_ALL is a constant defined in locale.h. What does Solaris want for the > setlocale() function? char *setlocale(int category, const char *locale); > The scrollbar error is because I forgot to surround that section of code > with: > > #ifdef ENHANCED > > scrollbars require a patch to tn5250 to work (and even then they don't > actually work, rather it is proof of concept - but a "scrollbar" does show > up on the screen). Looks like I need to fix that. In the mean time > adding the #ifdef ENHANCED around that if statement should fix it for you. That works > The remaining problems look like they are a result of getopt_long() not > being the same on solaris as it is on linux. On linux getopt_long looks > like this: > > int getopt_long(int argc, char * const argv[], > const char *optstring, > const struct option *longopts, int *longindex); > > and the option struct is: > > struct option { > const char *name; > int has_arg; > int *flag; > int val; > }; > > What does Solaris want? > extern char *optarg; extern int optind, opterr, optopt; extern int getopt(); extern int getopt(int, char *const *, const char *); -- Jack J. Woehr # Libertarian candidate PO Box 51, Golden, CO 80402 # Colorado 6th US House District http://www.well.com/~jax/2004 # Vote November 2, 2004
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.