X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=src%2Funexfreebsd.c;h=790d5498dc311318b5919e0f8e9d836623a8c9ef;hb=57bf633187a745973c8f0e0220e3aad79a83462f;hp=5cb73b3cf58698aa6e0eb9ed267944861b7e0733;hpb=6883ee56ec887c2c48abe5b06b5e66aa74031910;p=chise%2Fxemacs-chise.git.1 diff --git a/src/unexfreebsd.c b/src/unexfreebsd.c index 5cb73b3..790d549 100644 --- a/src/unexfreebsd.c +++ b/src/unexfreebsd.c @@ -40,6 +40,7 @@ Tweaked 26-Feb-94 by Shawn Carey for use with FreeBSD-1.1 shared libraries. #include #include #include +#include #include #include #include @@ -70,7 +71,7 @@ struct translation_struct /********************** Function Prototypes/Declarations ***********/ -static void unexec_error (CONST char *m, int use_errno, ...); +static void unexec_error (const char *m, int use_errno, ...); static int unexec_open (char *filename, int flag, int mode); static caddr_t unexec_mmap (int fd, size_t len, int prot, int flags); static long unexec_seek (int fd, long position); @@ -95,7 +96,6 @@ int run_time_remap (char *dummy); /********************** Variables **********************************/ /* for reporting error messages from system calls */ -extern int errno; extern int _DYNAMIC; extern char **environ; @@ -104,9 +104,9 @@ static unsigned long sbrk_of_0_at_unexec; /*******************************************************************/ static void -unexec_error (CONST char *fmt, int use_errno, ...) +unexec_error (const char *fmt, int use_errno, ...) { - CONST char *err_msg = SYS_ERR; + const char *err_msg = SYS_ERR; va_list args; fprintf (stderr, "unexec - ");