source: trunk/dports/editors/jove/files/patch-abbrev.c.diff @ 2311

Last change on this file since 2311 was 2311, checked in by michaelm, 17 years ago

new port: Jove.
Bug: 387
Submitted by: vivek@…
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 384 bytes
  • abbrev.c

    old new  
    274274                "jabbXXXXXX"
    275275#endif
    276276                );
     277#ifndef NO_MKSTEMP
     278        {
     279                int fd = mkstemp(tname);
     280                if ( fd == -1 )
     281                        err( 1, "can't create temp file %s", tname );
     282                close( fd );
     283        }
     284#else
    277285        (void) mktemp(tname);
     286#endif
    278287        save_abbrevs(tname);
    279288        setfname(ebuf, tname);
    280289        read_file(tname, NO);
Note: See TracBrowser for help on using the repository browser.