Mercurial > hg > xemacs-beta
diff src/unexfreebsd.c @ 398:74fd4e045ea6 r21-2-29
Import from CVS: tag r21-2-29
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:13:30 +0200 |
parents | ca9a9ec9c1c1 |
children | 697ef44129c6 |
line wrap: on
line diff
--- a/src/unexfreebsd.c Mon Aug 13 11:12:06 2007 +0200 +++ b/src/unexfreebsd.c Mon Aug 13 11:13:30 2007 +0200 @@ -40,6 +40,7 @@ #include <sys/types.h> #include <string.h> #include <stdio.h> +#include <errno.h> #include <a.out.h> #include <unistd.h> #include <ctype.h> @@ -70,7 +71,7 @@ /********************** 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 @@ /********************** Variables **********************************/ /* for reporting error messages from system calls */ -extern int errno; extern int _DYNAMIC; extern char **environ; @@ -104,9 +104,9 @@ /*******************************************************************/ 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 - ");