Ignore:
Timestamp:
07/11/2007 21:06:55 (5 years ago)
Author:
chris
Message:

Fix getopt reset for solaris and maybe other platforms. See
 http://lists.debian.org/debian-glibc/2004/10/msg00070.html.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/server/Daemon.cpp

    r1891 r1930  
    277277        // unfortunately glibc and BSD differ on this point! 
    278278        // http://www.ussg.iu.edu/hypermail/linux/kernel/0305.3/0262.html 
    279         #ifdef __GLIBC__ 
    280                 optind = 0; 
    281         #else 
     279        #if HAVE_DECL_OPTRESET == 1 
    282280                optind = 1; 
    283281                optreset = 1; 
     282        #elif defined __GLIBC__ 
     283                optind = 0; 
     284        #else // Solaris, any others? 
     285                optind = 1; 
    284286        #endif 
    285287 
Note: See TracChangeset for help on using the changeset viewer.