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

    r370 r809  
    3737
    3838#ifndef _MSC_VER
    39 #include <sys/param.h>
    40 #endif 
     39# include <sys/param.h>
     40#endif
    4141#include <sys/stat.h>
    4242#ifdef VM_AND_BUFFER_CACHE_SYNCHRONIZED
    43 #include <sys/mman.h>
     43# include <sys/mman.h>
    4444#endif
    4545
     
    4747#include <errno.h>
    4848#include <fcntl.h>
    49 #ifndef _MSC_VER
    5049#include <fts.h>
    51 #endif
    5250#include <limits.h>
    5351#include <stdio.h>
    5452#include <stdlib.h>
    5553#include <signal.h>
    56 #ifndef _MSC_VER
    5754#include <sysexits.h>
    5855#include <unistd.h>
    59 #else
    60 #include "mscfakes.h"
    61 #include "ftsfake.h"
    62 #endif
     56
     57#ifdef __sun__
     58# include "solfakes.h"
     59#endif
     60#ifdef _MSC_VER
     61# include "mscfakes.h"
     62#endif
    6363
    6464#include "cp_extern.h"
     
    7474#ifndef S_ISVTX
    7575# define S_ISVTX 0
    76 #endif 
     76#endif
    7777
    7878int
     
    123123                        }
    124124                }
    125                
     125
    126126                if (fflag) {
    127127                    /* remove existing destination file name,
     
    169169                                                entp->fts_path, to.p_path,
    170170                                                cp_pct(wtotal, fs->st_size));
    171                                                
     171
    172172                                }
    173173                                if (wcount >= (ssize_t)wresid || wcount <= 0)
     
    199199                                                entp->fts_path, to.p_path,
    200200                                                cp_pct(wtotal, fs->st_size));
    201                                                
     201
    202202                                }
    203203                                if (wcount >= (ssize_t)wresid || wcount <= 0)
Note: See TracChangeset for help on using the changeset viewer.