Ignore:
Timestamp:
08/12/2007 23:44:17 (4 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.
(merges [1930] [1974] plus local change for Win32)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/general/lib/server/Daemon.cpp

    r1855 r1975  
    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 || defined WIN32 
    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.