Changeset 9ad1f13 in rtems for c/build-tools/packhex.c


Ignore:
Timestamp:
Jan 21, 1998, 6:28:09 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
ba024755
Parents:
d73ed76b
Message:

Added autoconf support for strerror/sys_errlist per Ralf Corsepius'
direction. This fixes a problem reported by Steve Evans of Radstone
since he is using glibc2.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/build-tools/packhex.c

    rd73ed76b r9ad1f13  
    3737#include <stdlib.h>
    3838#include <string.h>
     39
     40#include "config.h"
     41
     42#ifndef VMS
     43#ifndef HAVE_STRERROR
     44extern int sys_nerr;
     45extern char *sys_errlist[];
     46
     47#define strerror( _err ) \
     48  ((_err) < sys_nerr) ? sys_errlist [(_err)] : "unknown error"
     49
     50#else   /* HAVE_STRERROR */
     51char *strerror ();
     52#endif
     53#else   /* VMS */
     54char *strerror (int,...);
     55#endif
    3956
    4057#if defined(__unix__) && !defined(EXIT_FAILURE)
Note: See TracChangeset for help on using the changeset viewer.