Changeset 2500 for trunk/src/kmk


Ignore:
Timestamp:
Jul 22, 2011, 4:25:12 PM (14 years ago)
Author:
bird
Message:

kmk_install: OS/2 fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/kmkbuiltin/install.c

    r2499 r2500  
    438438        if (hard_link_files_when_possible)
    439439        {
     440#ifdef KBUILD_OS_OS2
     441                const char *why_not = "not supported on OS/2";
     442#else
    440443                const char *why_not = NULL;
    441444                if (devnull) {
     
    449452                } else if (safecopy) {
    450453                        why_not = "safe copy (-S)";
    451 #if defined(KBUILD_OS_WINDOWS) || defined(KBUILD_OS_OS2)
     454# if defined(KBUILD_OS_WINDOWS) || defined(KBUILD_OS_OS2)
    452455                } else if ((mode & S_IWUSR) != (from_sb.st_mode & S_IWUSR)) {
    453 #else
     456# else
    454457                } else if (mode != (from_sb.st_mode & ALLPERMS)) {
    455 #endif
     458# endif
    456459                        printf("install: warning: Not hard linking, mode differs: 0%03o, desires 0%03o\n"
    457460                               "install: src path '%s'\n"
     
    479482                        why_not = NULL;
    480483                }
     484#endif
    481485                if (verbose && why_not)
    482486                    printf("install: not hard linking '%s' to '%s' because: %s\n",
Note: See TracChangeset for help on using the changeset viewer.