Ignore:
Timestamp:
Jan 29, 2007, 6:54:36 AM (18 years ago)
Author:
bird
Message:

Solaris + cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gmake/kmkbuiltin/rmdir.c

    r695 r809  
    4949#include <string.h>
    5050#include <errno.h>
    51 #ifndef _MSC_VER
    5251#include <unistd.h>
    53 #else
    54 #include <malloc.h>
    55 #include "mscfakes.h"
    56 #endif
    57 #include <getopt.h>
     52#include "getopt.h"
     53
     54#ifdef _MSC_VER
     55# include "mscfakes.h"
     56#endif
    5857
    5958static int rm_path(char *);
     
    8281        /* reinitialize globals */
    8382        ignore_fail_on_not_exist = ignore_fail_on_non_empty = vflag = pflag = 0;
    84        
     83
    8584        /* kmk: reset getopt and set progname */
    8685        g_progname = argv[0];
     
    150149                p = strchr(p, '\\');
    151150        }
    152 #endif 
     151#endif
    153152
    154153        p = path + len;
     
    166165                if (p[-1] == ':' && p - 2 == path)
    167166                        break;
    168 #endif 
     167#endif
    169168
    170169                if (rmdir(path) < 0) {
Note: See TracChangeset for help on using the changeset viewer.