Ignore:
Timestamp:
Dec 14, 2006, 2:38:40 AM (19 years ago)
Author:
bird
Message:

made it build on OS/2.

File:
1 edited

Legend:

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

    r627 r714  
    4545#include <sys/cdefs.h>
    4646__FBSDID("$FreeBSD: src/bin/mv/mv.c,v 1.46 2005/09/05 04:36:08 csjp Exp $");
    47 #endif 
     47#endif
    4848
    4949#include <sys/types.h>
    5050#ifndef _MSC_VER
     51#ifndef __OS2__
    5152#include <sys/acl.h>
     53#endif
    5254#include <sys/param.h>
    5355#include <sys/time.h>
     
    6264#ifndef _MSC_VER
    6365#include <grp.h>
    64 #endif 
     66#endif
    6567#include <limits.h>
    6668#ifndef _MSC_VER
    6769#include <paths.h>
    6870#include <pwd.h>
    69 #endif 
     71#endif
    7072#include <stdio.h>
    7173#include <stdlib.h>
     
    8890static int      fastcopy(char *, char *, struct stat *);
    8991static int      copy(char *, char *);
    90 #endif 
     92#endif
    9193static int      usage(void);
    9294
    9395#if !defined(__FreeBSD__) && !defined(__APPLE__)
    94 static const char *user_from_uid(unsigned long id, int x)
     96# ifdef __OS2__
     97static
     98# endif
     99const char *user_from_uid(uid_t id, int x)
    95100{
    96101        static char s_buf[64];
     
    98103        return s_buf;
    99104}
    100 static const char *group_from_gid(unsigned long id, int x)
     105# ifdef __OS2__
     106static
     107# endif
     108const char *group_from_gid(gid_t id, int x)
    101109{
    102110        static char s_buf[64];
     
    178186#else
    179187        if (!baselen || *(endp - 1) != '/') {
    180 #endif 
     188#endif
    181189                *endp++ = '/';
    182190                ++baselen;
     
    198206                while (p != *argv && p[-1] != '/')
    199207                        --p;
    200 #endif 
     208#endif
    201209
    202210                if ((baselen + (len = strlen(p))) >= PATH_MAX) {
     
    273281                }
    274282        }
    275 #endif 
     283#endif
    276284
    277285        if (errno == EXDEV) {
     
    303311                        }
    304312                }
    305 #endif 
     313#endif
    306314        } else {
    307315                warn("rename %s to %s", from, to);
     
    321329        return (S_ISREG(sb.st_mode) ?
    322330            fastcopy(from, to, &sb) : copy(from, to));
    323 #endif 
     331#endif
    324332}
    325333
Note: See TracChangeset for help on using the changeset viewer.