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/mkdir.c

    r611 r809  
    4848#include <errno.h>
    4949#ifndef _MSC_VER
    50 #include <libgen.h>
     50# include <libgen.h>
    5151#endif
    5252#include <stdio.h>
    5353#include <stdlib.h>
    5454#include <string.h>
    55 #ifndef _MSC_VER
    5655#include <sysexits.h>
    5756#include <unistd.h>
    58 #else
    59 #include "mscfakes.h"
    60 #include <malloc.h>
     57
     58#ifdef __sun__
     59# include "getopt.h"
     60#endif
     61#ifdef _MSC_VER
     62# include <malloc.h>
     63# include "mscfakes.h"
    6164#endif
    6265
     
    8184    /* reinitialize globals */
    8285    vflag = 0;
    83    
     86
    8487    /* kmk: reset getopt and set progname */
    8588    g_progname = argv[0];
     
    136139                } else if (vflag)
    137140                        (void)printf("%s\n", *argv);
    138                
     141
    139142                if (!success)
    140143                        exitval = 1;
     
    172175                p = strchr(p, '\\');
    173176        }
    174 #endif 
     177#endif
    175178
    176179        p = path;
Note: See TracChangeset for help on using the changeset viewer.