Changeset 3208


Ignore:
Timestamp:
Apr 24, 2007, 11:24:33 PM (18 years ago)
Author:
bird
Message:

Use Ex-apis. Drop the dup() guards since libc is checking for that already.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/essentials/dev-lang/perl/os2/os2.c

    r3188 r3208  
    66#define INCL_WINERRORS
    77#define INCL_WINSYS
     8#define INCL_EXAPIS
     9#define INCL_EXAPIS_MAPPINGS
    810/* These 3 are needed for compile if os2.h includes os2tk.h, not os2emx.h */
    911#define INCL_DOSPROCESS
     
    45474549}
    45484550
     4551#ifndef __KLIBC__ /* libc already checks this. */
    45494552int
    45504553fd_ok(int fd)
     
    45524555    static ULONG max_fh = 0;
    45534556
    4554 #ifndef __KLIBC__
    45554557    if (!(_emx_env & 0x200)) return 1;          /* not OS/2. */
    4556 #endif
    45574558    if (fd >= max_fh) {                         /* Renew */
    45584559        LONG delta = 0;
     
    45824583    return -1;
    45834584}
     4585#endif /* !__KLIBC__ */
    45844586
    45854587#undef tmpnam
Note: See TracChangeset for help on using the changeset viewer.